mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 02:06:01 +02:00
Bug 561582 - Revise API for CDT Codan
Clean-up "org.eclipse.cdt.codan.checkers.ui.tests" test bundle Change-Id: I0f5198cc85c85b0829f5a73574cec54f152ba0cf Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
This commit is contained in:
parent
89ada0fae4
commit
7458b960c9
4 changed files with 22 additions and 52 deletions
|
@ -2,23 +2,16 @@ Manifest-Version: 1.0
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %Bundle-Name
|
||||
Bundle-SymbolicName: org.eclipse.cdt.codan.checkers.ui.tests
|
||||
Bundle-Version: 3.2.0.qualifier
|
||||
Bundle-Activator: org.eclipse.cdt.codan.checkers.ui.Activator
|
||||
Bundle-Version: 3.3.0.qualifier
|
||||
Require-Bundle: org.eclipse.core.runtime,
|
||||
org.eclipse.cdt.codan.checkers.ui,
|
||||
org.eclipse.core.resources,
|
||||
org.eclipse.cdt.codan.ui,
|
||||
org.eclipse.cdt.codan.ui.cxx,
|
||||
org.eclipse.ui,
|
||||
org.eclipse.ui.ide,
|
||||
org.junit,
|
||||
org.mockito,
|
||||
org.hamcrest,
|
||||
org.eclipse.cdt.core,
|
||||
org.eclipse.jface.text,
|
||||
org.eclipse.ui.workbench.texteditor,
|
||||
org.eclipse.ui.editors
|
||||
org.eclipse.cdt.core
|
||||
Fragment-Host: org.eclipse.cdt.codan.checkers.ui
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Bundle-Vendor: %Bundle-Vendor
|
||||
Automatic-Module-Name: org.eclipse.cdt.codan.checkers.ui.tests
|
||||
Export-Package: org.eclipse.cdt.codan.checkers.ui.quickfix;x-internal:=true
|
||||
|
|
|
@ -1,7 +1,22 @@
|
|||
###############################################################################
|
||||
# Copyright (c) 2016, 2020 COSEDA Technologies GmbH and others.
|
||||
#
|
||||
# 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:
|
||||
# Dominic Scharfe (COSEDA Technologies GmbH) - initial API and implementation
|
||||
# Alexander Fedorov (alexander.fedorov@arsysop.ru) - Bug 561582
|
||||
###############################################################################
|
||||
source.. = src/
|
||||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
OSGI-INF/,\
|
||||
about.html,\
|
||||
ui-test-plugin.properties
|
||||
src.includes = about.html
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2016 COSEDA Technologies GmbH
|
||||
*
|
||||
* 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:
|
||||
* Dominic Scharfe (COSEDA Technologies GmbH) - initial implementation
|
||||
*
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.codan.checkers.ui;
|
||||
|
||||
import org.osgi.framework.BundleActivator;
|
||||
import org.osgi.framework.BundleContext;
|
||||
|
||||
public class Activator implements BundleActivator {
|
||||
|
||||
private static BundleContext context;
|
||||
|
||||
static BundleContext getContext() {
|
||||
return context;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(BundleContext bundleContext) throws Exception {
|
||||
Activator.context = bundleContext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop(BundleContext bundleContext) throws Exception {
|
||||
Activator.context = null;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2016 COSEDA Technologies GmbH
|
||||
* Copyright (c) 2016, 2020 COSEDA Technologies GmbH and others
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
|
@ -10,7 +10,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Dominic Scharfe (COSEDA Technologies GmbH) - initial implementation
|
||||
*
|
||||
* Alexander Fedorov (alexander.fedorov@arsysop.ru) - Bug 561582
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.codan.checkers.ui.quickfix;
|
||||
|
||||
|
@ -34,7 +34,7 @@ import org.junit.Before;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.Mock;
|
||||
import org.mockito.runners.MockitoJUnitRunner;
|
||||
import org.mockito.junit.MockitoJUnitRunner;
|
||||
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class QuickFixCreateNewClassTest {
|
||||
|
|
Loading…
Add table
Reference in a new issue