diff --git a/analyses/org.eclipse.tracecompass.incubator.inandout.core.tests/src/org/eclipse/tracecompass/incubator/inandout/core/tests/analysis/InAndOutDataProviderFactoryTest.java b/analyses/org.eclipse.tracecompass.incubator.inandout.core.tests/src/org/eclipse/tracecompass/incubator/inandout/core/tests/analysis/InAndOutDataProviderFactoryTest.java index 79bbba014..23987e40e 100644 --- a/analyses/org.eclipse.tracecompass.incubator.inandout.core.tests/src/org/eclipse/tracecompass/incubator/inandout/core/tests/analysis/InAndOutDataProviderFactoryTest.java +++ b/analyses/org.eclipse.tracecompass.incubator.inandout.core.tests/src/org/eclipse/tracecompass/incubator/inandout/core/tests/analysis/InAndOutDataProviderFactoryTest.java @@ -33,6 +33,7 @@ import org.eclipse.tracecompass.tmf.core.dataprovider.IDataProviderDescriptor.ProviderType; import org.eclipse.tracecompass.tmf.core.dataprovider.IDataProviderFactory; import org.eclipse.tracecompass.tmf.core.exceptions.TmfConfigurationException; +import org.eclipse.tracecompass.tmf.core.model.DataProviderCapabilities; import org.eclipse.tracecompass.tmf.core.model.DataProviderDescriptor; import org.eclipse.tracecompass.tmf.core.model.tree.ITmfTreeDataProvider; import org.eclipse.tracecompass.tmf.core.signal.TmfSignalManager; @@ -72,6 +73,7 @@ public class InAndOutDataProviderFactoryTest { .setName(EXPECTED_CONFIGURATOR_NAME) .setDescription(EXPECTED_CONFIGURATOR_DESCRIPTION) .setProviderType(ProviderType.NONE) + .setCapabilities(new DataProviderCapabilities.Builder().setCanCreate(true).build()) .build(); private static InAndOutDataProviderFactory sfFixture = new InAndOutDataProviderFactory(); @@ -166,6 +168,7 @@ public void testCreateAndDeleteDataProviderDescriptor() throws TmfConfigurationE assertEquals(CUSTOM_IN_AND_OUT_ANALYSIS_DESCRIPTION, descriptor.getDescription()); assertEquals(ProviderType.NONE, descriptor.getType()); assertEquals(EXPECTED_FACTORY_ID, descriptor.getParentId()); + assertEquals(new DataProviderCapabilities.Builder().setCanDelete(true).build(), descriptor.getCapabilities()); ITmfConfiguration config = descriptor.getConfiguration(); assertNotNull(config); diff --git a/analyses/org.eclipse.tracecompass.incubator.inandout.core/src/org/eclipse/tracecompass/incubator/internal/inandout/core/analysis/InAndOutDataProviderFactory.java b/analyses/org.eclipse.tracecompass.incubator.inandout.core/src/org/eclipse/tracecompass/incubator/internal/inandout/core/analysis/InAndOutDataProviderFactory.java index 05a313b01..d8567cc7e 100644 --- a/analyses/org.eclipse.tracecompass.incubator.inandout.core/src/org/eclipse/tracecompass/incubator/internal/inandout/core/analysis/InAndOutDataProviderFactory.java +++ b/analyses/org.eclipse.tracecompass.incubator.inandout.core/src/org/eclipse/tracecompass/incubator/internal/inandout/core/analysis/InAndOutDataProviderFactory.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2024 Ericsson + * Copyright (c) 2024, 2025 Ericsson * * All rights reserved. This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 which @@ -37,6 +37,7 @@ import org.eclipse.tracecompass.tmf.core.dataprovider.IDataProviderDescriptor.ProviderType; import org.eclipse.tracecompass.tmf.core.dataprovider.IDataProviderFactory; import org.eclipse.tracecompass.tmf.core.exceptions.TmfConfigurationException; +import org.eclipse.tracecompass.tmf.core.model.DataProviderCapabilities; import org.eclipse.tracecompass.tmf.core.model.DataProviderDescriptor; import org.eclipse.tracecompass.tmf.core.model.tree.ITmfTreeDataModel; import org.eclipse.tracecompass.tmf.core.model.tree.ITmfTreeDataProvider; @@ -98,6 +99,7 @@ public class InAndOutDataProviderFactory implements IDataProviderFactory, ITmfDa .setName(CONFIGURATOR_NAME) .setDescription(CONFIGURATOR_DESCRIPTION) .setProviderType(ProviderType.NONE) + .setCapabilities(new DataProviderCapabilities.Builder().setCanCreate(true).build()) .build(); /** @@ -264,6 +266,7 @@ private static IDataProviderDescriptor getDescriptorFromConfig(ITmfConfiguration .setDescription(NLS.bind(CUSTOM_IN_AND_OUT_ANALYSIS_DESCRIPTION, config.getName())) .setProviderType(ProviderType.NONE) .setConfiguration(config) + .setCapabilities(new DataProviderCapabilities.Builder().setCanDelete(true).build()) .build(); } }