mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Replaced deprecated methods.
This commit is contained in:
parent
5630808394
commit
9eda3a1323
4 changed files with 48 additions and 12 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-05-25 Mikhail Khodjaiants
|
||||
Replaced deprecated methods.
|
||||
* CDebugUIPreferenceInitializer.java: new
|
||||
* CDebugUIPlugin.java
|
||||
|
||||
2004-05-24 Mikhail Khodjaiants
|
||||
Fix for bug 63612: Debugger Pages are not displayed.
|
||||
* CDebugUIPlugin.java
|
||||
|
|
|
@ -1269,5 +1269,9 @@
|
|||
debugModel="org.eclipse.cdt.debug.core"
|
||||
delegateClass="org.eclipse.cdt.debug.internal.ui.CWatchExpressionDelegate"/>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.core.runtime.preferences">
|
||||
<initializer class="org.eclipse.cdt.debug.internal.ui.CDebugUIPreferenceInitializer"/>
|
||||
</extension>
|
||||
|
||||
</plugin>
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
/**********************************************************************
|
||||
* Copyright (c) 2004 QNX Software Systems and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Common Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/cpl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* QNX Software Systems - Initial API and implementation
|
||||
***********************************************************************/
|
||||
package org.eclipse.cdt.debug.internal.ui;
|
||||
|
||||
import org.eclipse.cdt.debug.internal.ui.preferences.CDebugPreferencePage;
|
||||
import org.eclipse.cdt.debug.internal.ui.preferences.MemoryViewPreferencePage;
|
||||
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
|
||||
/**
|
||||
* Default preference value initializer for <code>CDebugUIplugin</code>.
|
||||
*/
|
||||
public class CDebugUIPreferenceInitializer extends AbstractPreferenceInitializer {
|
||||
|
||||
/**
|
||||
* Constructor for CDebugUIPreferenceInitializer.
|
||||
*/
|
||||
public CDebugUIPreferenceInitializer() {
|
||||
super();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
|
||||
*/
|
||||
public void initializeDefaultPreferences() {
|
||||
IPreferenceStore pstore = CDebugUIPlugin.getDefault().getPreferenceStore();
|
||||
MemoryViewPreferencePage.initDefaults( pstore );
|
||||
CDebugPreferencePage.initDefaults( pstore );
|
||||
}
|
||||
}
|
|
@ -22,8 +22,6 @@ import org.eclipse.cdt.debug.internal.ui.CBreakpointUpdater;
|
|||
import org.eclipse.cdt.debug.internal.ui.CDTDebugModelPresentation;
|
||||
import org.eclipse.cdt.debug.internal.ui.CDebugImageDescriptorRegistry;
|
||||
import org.eclipse.cdt.debug.internal.ui.ColorManager;
|
||||
import org.eclipse.cdt.debug.internal.ui.preferences.CDebugPreferencePage;
|
||||
import org.eclipse.cdt.debug.internal.ui.preferences.MemoryViewPreferencePage;
|
||||
import org.eclipse.cdt.debug.ui.sourcelookup.DefaultSourceLocator;
|
||||
import org.eclipse.core.resources.IWorkspace;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
|
@ -41,7 +39,6 @@ import org.eclipse.debug.core.model.IThread;
|
|||
import org.eclipse.debug.ui.IDebugUIConstants;
|
||||
import org.eclipse.debug.ui.ILaunchConfigurationTab;
|
||||
import org.eclipse.jface.dialogs.ErrorDialog;
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.jface.preference.PreferenceConverter;
|
||||
import org.eclipse.jface.viewers.ISelection;
|
||||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
|
@ -168,15 +165,6 @@ public class CDebugUIPlugin extends AbstractUIPlugin implements ISelectionListen
|
|||
PreferenceConverter.getColor( getDefault().getPreferenceStore(), type ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @see AbstractUIPlugin#initializeDefaultPreferences
|
||||
*/
|
||||
protected void initializeDefaultPreferences( IPreferenceStore pstore )
|
||||
{
|
||||
MemoryViewPreferencePage.initDefaults( pstore );
|
||||
CDebugPreferencePage.initDefaults( pstore );
|
||||
}
|
||||
|
||||
public static CDTDebugModelPresentation getDebugModelPresentation()
|
||||
{
|
||||
return CDTDebugModelPresentation.getDefault();
|
||||
|
|
Loading…
Add table
Reference in a new issue