diff options
Diffstat (limited to 'org.eclipse.m2e.profiles.ui/src/org/eclipse/m2e/profiles/ui/internal/dialog/ProfileSelection.java')
-rw-r--r-- | org.eclipse.m2e.profiles.ui/src/org/eclipse/m2e/profiles/ui/internal/dialog/ProfileSelection.java | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/org.eclipse.m2e.profiles.ui/src/org/eclipse/m2e/profiles/ui/internal/dialog/ProfileSelection.java b/org.eclipse.m2e.profiles.ui/src/org/eclipse/m2e/profiles/ui/internal/dialog/ProfileSelection.java new file mode 100644 index 00000000..a6443126 --- /dev/null +++ b/org.eclipse.m2e.profiles.ui/src/org/eclipse/m2e/profiles/ui/internal/dialog/ProfileSelection.java @@ -0,0 +1,64 @@ +/************************************************************************************* + * Copyright (c) 2011-2014 Red Hat, Inc. and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Fred Bricon / JBoss by Red Hat - Initial implementation. + ************************************************************************************/ +package org.eclipse.m2e.profiles.ui.internal.dialog; + +import org.eclipse.m2e.profiles.core.internal.ProfileState; + +/* Model of a Maven Profile Selection + * + * @author Fred Bricon + * @since 1.5.0 + */ +public class ProfileSelection { + private String id; + private Boolean autoActive; + private Boolean selected; + private ProfileState activationState; + private String source; + public String getId() { + return id; + } + public void setId(String id) { + this.id = id; + } + public Boolean getAutoActive() { + return autoActive; + } + public void setAutoActive(Boolean autoActive) { + this.autoActive = autoActive; + } + public Boolean getSelected() { + return selected; + } + public void setSelected(Boolean selected) { + this.selected = selected; + } + public ProfileState getActivationState() { + return activationState; + } + public void setActivationState(ProfileState activationState) { + this.activationState = activationState; + } + public String getSource() { + return source; + } + public void setSource(String source) { + this.source = source; + } + + public String toMavenString() { + String s = id; + if (ProfileState.Disabled == activationState) { + s = "!"+id; + } + return s; + } +} |