Commit f73c0056 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

fix(deploy) clean BDM enablement

parent b4e36bcf
......@@ -21,11 +21,13 @@ import java.util.stream.Collectors;
import org.bonitasoft.studio.actors.repository.OrganizationFileStore;
import org.bonitasoft.studio.application.ui.control.model.Artifact;
import org.bonitasoft.studio.application.ui.control.model.BuildableArtifact;
import org.bonitasoft.studio.application.ui.control.model.BusinessObjectModelArtifact;
import org.bonitasoft.studio.application.ui.control.model.OrganizationArtifact;
import org.bonitasoft.studio.application.ui.control.model.ProcessArtifact;
import org.bonitasoft.studio.application.ui.control.model.RepositoryModel;
import org.bonitasoft.studio.application.ui.control.model.RepositoryStore;
import org.bonitasoft.studio.application.ui.control.model.TenantArtifact;
import org.bonitasoft.studio.businessobject.core.repository.BusinessObjectModelFileStore;
import org.bonitasoft.studio.common.repository.Repository;
import org.bonitasoft.studio.common.repository.RepositoryAccessor;
import org.bonitasoft.studio.common.repository.model.IDeployable;
......@@ -67,6 +69,8 @@ public class RepositoryModelBuilder {
private Artifact createArtifact(RepositoryStore parent, IRepositoryFileStore fStore) {
if (fStore instanceof OrganizationFileStore) {
return new OrganizationArtifact(parent, fStore);
} else if (fStore instanceof BusinessObjectModelFileStore) {
return new BusinessObjectModelArtifact(parent, fStore);
} else if (fStore instanceof ITenantResource) {
return new TenantArtifact(parent, fStore);
} else if (fStore instanceof DiagramFileStore) {
......
......@@ -30,11 +30,11 @@ import org.bonitasoft.studio.actors.model.organization.User;
import org.bonitasoft.studio.application.i18n.Messages;
import org.bonitasoft.studio.application.ui.control.model.Artifact;
import org.bonitasoft.studio.application.ui.control.model.ArtifactVersion;
import org.bonitasoft.studio.application.ui.control.model.BusinessObjectModelArtifact;
import org.bonitasoft.studio.application.ui.control.model.OrganizationArtifact;
import org.bonitasoft.studio.application.ui.control.model.RepositoryModel;
import org.bonitasoft.studio.application.ui.control.model.RepositoryStore;
import org.bonitasoft.studio.application.ui.control.model.VersionedArtifact;
import org.bonitasoft.studio.businessobject.core.repository.BusinessObjectModelFileStore;
import org.bonitasoft.studio.common.jface.databinding.validator.EmptyInputValidator;
import org.bonitasoft.studio.common.repository.core.ActiveOrganizationProvider;
import org.bonitasoft.studio.common.repository.ui.viewer.CheckboxRepositoryTreeViewer;
......@@ -200,7 +200,7 @@ public class SelectArtifactToDeployPage implements ControlSupplier {
private void updateCleanDeployEnablement() {
cleanDeployOption.setEnabled(
checkedElementsObservable.stream().anyMatch(BusinessObjectModelFileStore.class::isInstance));
checkedElementsObservable.stream().anyMatch(BusinessObjectModelArtifact.class::isInstance));
}
protected void mergeSets() {
......
/**
* Copyright (C) 2019 Bonitasoft S.A.
* Bonitasoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2.0 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.bonitasoft.studio.application.ui.control.model;
import org.bonitasoft.studio.common.repository.model.IRepositoryFileStore;
public class BusinessObjectModelArtifact extends TenantArtifact {
public BusinessObjectModelArtifact(RepositoryStore parent, IRepositoryFileStore fStore) {
super(parent, fStore);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment