mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 01:45:33 +02:00
Bug 561996 - Remove dependency to com.ibm.icu from CDT DSF GDB
Switch to JRE implementations: * com.ibm.icu.text.MessageFormat -> java.text.MessageFormat Signed-off-by: Mat Booth <mat.booth@gmail.com> Change-Id: I823bcea99adad3decdfa29651b934b5902607f70
This commit is contained in:
parent
f138ad10e8
commit
ef30e37327
8 changed files with 11 additions and 20 deletions
|
@ -48,5 +48,4 @@ Export-Package: org.eclipse.cdt.dsf.gdb,
|
|||
org.eclipse.cdt.dsf.mi.service.command.commands,
|
||||
org.eclipse.cdt.dsf.mi.service.command.events,
|
||||
org.eclipse.cdt.dsf.mi.service.command.output
|
||||
Import-Package: com.ibm.icu.text
|
||||
Automatic-Module-Name: org.eclipse.cdt.dsf.gdb
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
package org.eclipse.cdt.dsf.gdb.internal.memory;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
@ -60,8 +61,6 @@ import org.w3c.dom.Element;
|
|||
import org.w3c.dom.Node;
|
||||
import org.w3c.dom.NodeList;
|
||||
|
||||
import com.ibm.icu.text.MessageFormat;
|
||||
|
||||
/**
|
||||
* A specialization of the DSF memory block retrieval implementation supporting
|
||||
* memory spaces. The memory space support is provisional, thus this class is
|
||||
|
@ -371,7 +370,7 @@ public class GdbMemoryBlockRetrieval extends DsfMemoryBlockRetrieval implements
|
|||
if (service instanceof IMemorySpaces2) {
|
||||
final IMemorySpaces2 memSpaceService = (IMemorySpaces2) service;
|
||||
|
||||
Query<IMemorySpaces.DecodeResult> query = new Query<IMemorySpaces.DecodeResult>() {
|
||||
Query<IMemorySpaces.DecodeResult> query = new Query<>() {
|
||||
@Override
|
||||
protected void execute(final DataRequestMonitor<IMemorySpaces.DecodeResult> drm) {
|
||||
memSpaceService.decodeExpression(dmc, expression, drm);
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.dsf.gdb.launching;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.Map;
|
||||
|
||||
import org.eclipse.cdt.dsf.gdb.IGdbDebugConstants;
|
||||
|
@ -23,8 +24,6 @@ import org.eclipse.debug.core.ILaunchConfiguration;
|
|||
import org.eclipse.debug.core.model.IProcess;
|
||||
import org.eclipse.debug.core.model.RuntimeProcess;
|
||||
|
||||
import com.ibm.icu.text.MessageFormat;
|
||||
|
||||
/**
|
||||
* A process for the inferior to know it belongs to a DSF-GDB session.
|
||||
* This class also adds the exit code of the inferior to the console.
|
||||
|
|
|
@ -15,11 +15,10 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.dsf.gdb.launching;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import com.ibm.icu.text.MessageFormat;
|
||||
|
||||
public class LaunchMessages {
|
||||
|
||||
private static final String BUNDLE_NAME = "org.eclipse.cdt.dsf.gdb.launching.LaunchMessages";//$NON-NLS-1$
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.dsf.gdb.service;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
|
@ -57,8 +58,6 @@ import org.eclipse.core.runtime.IStatus;
|
|||
import org.eclipse.core.runtime.Status;
|
||||
import org.osgi.framework.BundleContext;
|
||||
|
||||
import com.ibm.icu.text.MessageFormat;
|
||||
|
||||
/**
|
||||
* Expressions service added as a layer above the standard Expressions service.
|
||||
* This layer allows to support expression-groups and glob-pattern matching.
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.dsf.gdb.service;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
@ -72,8 +73,6 @@ import org.eclipse.debug.core.ILaunch;
|
|||
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||
import org.eclipse.launchbar.core.target.launch.ITargetedLaunch;
|
||||
|
||||
import com.ibm.icu.text.MessageFormat;
|
||||
|
||||
/**
|
||||
* Adding support for multi-process with GDB 7.2
|
||||
*
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
package org.eclipse.cdt.dsf.mi.service;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
@ -112,8 +113,6 @@ import org.eclipse.debug.core.IBreakpointManagerListener;
|
|||
import org.eclipse.debug.core.model.IBreakpoint;
|
||||
import org.osgi.framework.BundleContext;
|
||||
|
||||
import com.ibm.icu.text.MessageFormat;
|
||||
|
||||
/**
|
||||
* Breakpoint service interface. The breakpoint service tracks CDT breakpoint
|
||||
* objects, and based on those, it manages breakpoints in the debugger back end.
|
||||
|
@ -659,8 +658,7 @@ public class MIBreakpointsManager extends AbstractDsfService
|
|||
|
||||
// Install the back-end breakpoint(s)
|
||||
for (final String thread : threads) {
|
||||
DataRequestMonitor<IBreakpointDMContext> drm = new DataRequestMonitor<IBreakpointDMContext>(getExecutor(),
|
||||
installRM) {
|
||||
DataRequestMonitor<IBreakpointDMContext> drm = new DataRequestMonitor<>(getExecutor(), installRM) {
|
||||
@Override
|
||||
protected void handleSuccess() {
|
||||
// Add the new back-end breakpoint to the map
|
||||
|
@ -1116,8 +1114,8 @@ public class MIBreakpointsManager extends AbstractDsfService
|
|||
|
||||
// New back-end breakpoints insertion monitor
|
||||
// Holds the list of new back-end breakpoint contexts of the platform breakpoint
|
||||
final DataRequestMonitor<Vector<IBreakpointDMContext>> insertRM = new DataRequestMonitor<Vector<IBreakpointDMContext>>(
|
||||
getExecutor(), null) {
|
||||
final DataRequestMonitor<Vector<IBreakpointDMContext>> insertRM = new DataRequestMonitor<>(getExecutor(),
|
||||
null) {
|
||||
|
||||
@Override
|
||||
// In theory, we could have had a partial success and the original threads
|
||||
|
|
|
@ -25,6 +25,7 @@ import java.io.IOException;
|
|||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.OutputStream;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
|
@ -82,8 +83,6 @@ import org.eclipse.core.runtime.preferences.IEclipsePreferences;
|
|||
import org.eclipse.core.runtime.preferences.InstanceScope;
|
||||
import org.eclipse.osgi.util.NLS;
|
||||
|
||||
import com.ibm.icu.text.MessageFormat;
|
||||
|
||||
/**
|
||||
* Base implementation of an MI control service. It provides basic handling
|
||||
* of input/output channels, and processing of the commands.
|
||||
|
|
Loading…
Add table
Reference in a new issue