1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 19:35:36 +02:00

2004-05-18 Alain Magloire

Remove warnings and compatibility plugin
	to be full Eclipse-3.0 compliant.
This commit is contained in:
Alain Magloire 2004-05-18 17:34:49 +00:00
parent aa2dc61d05
commit d46532a2d9
6 changed files with 17 additions and 13 deletions

View file

@ -1,3 +1,8 @@
2004-05-18 Alain Magloire
Remove dependencies on the compatibility plugin
and move to be more Eclipse-3.0 compliant.
2004-05-07 Alain Magloire 2004-05-07 Alain Magloire
PR 57127. Pass the stream verbatim PR 57127. Pass the stream verbatim
even if it has spaces. even if it has spaces.

View file

@ -168,7 +168,7 @@ public class MemoryManager extends Manager implements ICDIMemoryManager {
* @see org.eclipse.cdt.debug.core.cdi.ICDIMemoryManager#getBlocks() * @see org.eclipse.cdt.debug.core.cdi.ICDIMemoryManager#getBlocks()
*/ */
public ICDIMemoryBlock[] getMemoryBlocks() throws CDIException { public ICDIMemoryBlock[] getMemoryBlocks() throws CDIException {
return (ICDIMemoryBlock[])listMemoryBlocks(); return listMemoryBlocks();
} }
/** /**

View file

@ -11,7 +11,7 @@ public class DisconnectedEvent implements ICDIDisconnectedEvent {
ICDIObject source; ICDIObject source;
public DisconnectedEvent(Session session) { public DisconnectedEvent(Session session) {
source = (ICDIObject)session.getCurrentTarget(); source = session.getCurrentTarget();
} }
/** /**

View file

@ -17,7 +17,7 @@
<import plugin="org.eclipse.core.resources"/> <import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.debug.core"/> <import plugin="org.eclipse.debug.core"/>
<import plugin="org.eclipse.cdt.core"/> <import plugin="org.eclipse.cdt.core"/>
<import plugin="org.eclipse.core.runtime.compatibility"/> <import plugin="org.eclipse.core.runtime"/>
</requires> </requires>

View file

@ -16,7 +16,7 @@ public interface IMIConstants
/** /**
* MI plug-in identifier (value <code>"org.eclipse.cdt.debug.mi"</code>). * MI plug-in identifier (value <code>"org.eclipse.cdt.debug.mi"</code>).
*/ */
public static final String PLUGIN_ID = MIPlugin.getDefault().getDescriptor().getUniqueIdentifier(); public static final String PLUGIN_ID = MIPlugin.getUniqueIdentifier();
/** /**
* Preference key for default MI request timeout value. * Preference key for default MI request timeout value.

View file

@ -24,10 +24,9 @@ import org.eclipse.cdt.debug.mi.core.command.MITargetSelect;
import org.eclipse.cdt.debug.mi.core.output.MIInfo; import org.eclipse.cdt.debug.mi.core.output.MIInfo;
import org.eclipse.cdt.utils.pty.PTY; import org.eclipse.cdt.utils.pty.PTY;
import org.eclipse.cdt.utils.spawner.ProcessFactory; import org.eclipse.cdt.utils.spawner.ProcessFactory;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPluginDescriptor;
import org.eclipse.core.runtime.Plugin; import org.eclipse.core.runtime.Plugin;
import org.eclipse.core.runtime.Preferences; import org.eclipse.core.runtime.Preferences;
import org.osgi.framework.BundleContext;
/** /**
* GDB/MI Plugin. * GDB/MI Plugin.
@ -61,8 +60,8 @@ public class MIPlugin extends Plugin {
* The constructor * The constructor
* @see org.eclipse.core.runtime.Plugin#Plugin(IPluginDescriptor) * @see org.eclipse.core.runtime.Plugin#Plugin(IPluginDescriptor)
*/ */
public MIPlugin(IPluginDescriptor descriptor) { public MIPlugin() {
super(descriptor); super();
plugin = this; plugin = this;
} }
@ -306,7 +305,7 @@ public class MIPlugin extends Plugin {
// match the plugin id defined in plugin.xml // match the plugin id defined in plugin.xml
return PLUGIN_ID; return PLUGIN_ID;
} }
return getDefault().getDescriptor().getUniqueIdentifier(); return getDefault().getBundle().getSymbolicName();
} }
public void debugLog(String message) { public void debugLog(String message) {
@ -406,8 +405,8 @@ public class MIPlugin extends Plugin {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.core.runtime.Plugin#startup() * @see org.eclipse.core.runtime.Plugin#startup()
*/ */
public void startup() throws CoreException { public void start(BundleContext context) throws Exception {
super.startup(); super.start(context);
} }
/* (non-Javadoc) /* (non-Javadoc)
@ -421,9 +420,9 @@ public class MIPlugin extends Plugin {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.core.runtime.Plugin#shutdown() * @see org.eclipse.core.runtime.Plugin#shutdown()
*/ */
public void shutdown() throws CoreException { public void stop(BundleContext context) throws Exception {
savePluginPreferences(); savePluginPreferences();
super.shutdown(); super.stop(context);
} }
} }