mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
2004-05-18 Alain Magloire
Remove warnings and compatibility plugin to be full Eclipse-3.0 compliant.
This commit is contained in:
parent
aa2dc61d05
commit
d46532a2d9
6 changed files with 17 additions and 13 deletions
|
@ -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
|
||||
PR 57127. Pass the stream verbatim
|
||||
even if it has spaces.
|
||||
|
|
|
@ -168,7 +168,7 @@ public class MemoryManager extends Manager implements ICDIMemoryManager {
|
|||
* @see org.eclipse.cdt.debug.core.cdi.ICDIMemoryManager#getBlocks()
|
||||
*/
|
||||
public ICDIMemoryBlock[] getMemoryBlocks() throws CDIException {
|
||||
return (ICDIMemoryBlock[])listMemoryBlocks();
|
||||
return listMemoryBlocks();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ public class DisconnectedEvent implements ICDIDisconnectedEvent {
|
|||
ICDIObject source;
|
||||
|
||||
public DisconnectedEvent(Session session) {
|
||||
source = (ICDIObject)session.getCurrentTarget();
|
||||
source = session.getCurrentTarget();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<import plugin="org.eclipse.core.resources"/>
|
||||
<import plugin="org.eclipse.debug.core"/>
|
||||
<import plugin="org.eclipse.cdt.core"/>
|
||||
<import plugin="org.eclipse.core.runtime.compatibility"/>
|
||||
<import plugin="org.eclipse.core.runtime"/>
|
||||
</requires>
|
||||
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ public interface IMIConstants
|
|||
/**
|
||||
* 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.
|
||||
|
|
|
@ -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.utils.pty.PTY;
|
||||
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.Preferences;
|
||||
import org.osgi.framework.BundleContext;
|
||||
|
||||
/**
|
||||
* GDB/MI Plugin.
|
||||
|
@ -61,8 +60,8 @@ public class MIPlugin extends Plugin {
|
|||
* The constructor
|
||||
* @see org.eclipse.core.runtime.Plugin#Plugin(IPluginDescriptor)
|
||||
*/
|
||||
public MIPlugin(IPluginDescriptor descriptor) {
|
||||
super(descriptor);
|
||||
public MIPlugin() {
|
||||
super();
|
||||
plugin = this;
|
||||
}
|
||||
|
||||
|
@ -306,7 +305,7 @@ public class MIPlugin extends Plugin {
|
|||
// match the plugin id defined in plugin.xml
|
||||
return PLUGIN_ID;
|
||||
}
|
||||
return getDefault().getDescriptor().getUniqueIdentifier();
|
||||
return getDefault().getBundle().getSymbolicName();
|
||||
}
|
||||
|
||||
public void debugLog(String message) {
|
||||
|
@ -406,8 +405,8 @@ public class MIPlugin extends Plugin {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.core.runtime.Plugin#startup()
|
||||
*/
|
||||
public void startup() throws CoreException {
|
||||
super.startup();
|
||||
public void start(BundleContext context) throws Exception {
|
||||
super.start(context);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
@ -421,9 +420,9 @@ public class MIPlugin extends Plugin {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.core.runtime.Plugin#shutdown()
|
||||
*/
|
||||
public void shutdown() throws CoreException {
|
||||
public void stop(BundleContext context) throws Exception {
|
||||
savePluginPreferences();
|
||||
super.shutdown();
|
||||
super.stop(context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue