1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Removed warnings.

This commit is contained in:
Mikhail Khodjaiants 2003-02-06 21:26:20 +00:00
parent 564881b2ed
commit 11577c15eb
6 changed files with 17 additions and 6 deletions

View file

@ -1,3 +1,11 @@
2003-02-05 Mikhail Khodjaiants
Removed warnings.
* AddAddressBreakpointActionDelegate.java
* AddExpressionActionDelegate.java
* CBreakpointPropertiesDialog.java
* CUISourceLocator.java
* SourceLookupBlock.java
2003-02-05 Mikhail Khodjaiants
Implementation of the 'Resume At C/C++ Line' action.
* RunToLineActionDelegate.java

View file

@ -13,6 +13,7 @@ import org.eclipse.debug.core.model.IDebugElement;
import org.eclipse.debug.core.model.IDebugTarget;
import org.eclipse.jface.dialogs.IInputValidator;
import org.eclipse.jface.dialogs.InputDialog;
import org.eclipse.jface.window.Window;
/**
*
@ -68,7 +69,7 @@ public class AddAddressBreakpointActionDelegate extends AbstractListenerActionDe
"Enter address:",
null,
new AddressValidator() );
if ( dialog.open() == dialog.OK )
if ( dialog.open() == Window.OK )
{
CDebugModel.createAddressBreakpoint( ((IExecFileInfo)getDebugTarget( element ).getAdapter( IExecFileInfo.class )).getExecFile(),
parseValue( dialog.getValue().trim() ),

View file

@ -147,7 +147,7 @@ public class AddExpressionActionDelegate extends AbstractEditorActionDelegate
*/
protected void showExpressionView()
{
IWorkbenchPage page = CDebugUIPlugin.getDefault().getActivePage();
IWorkbenchPage page = CDebugUIPlugin.getActivePage();
if ( page != null )
{
IViewPart part = page.findView( IDebugUIConstants.ID_EXPRESSION_VIEW );
@ -159,7 +159,7 @@ public class AddExpressionActionDelegate extends AbstractEditorActionDelegate
}
catch( PartInitException e )
{
CDebugUIPlugin.getDefault().log( e.getStatus() );
CDebugUIPlugin.log( e.getStatus() );
}
}
else

View file

@ -460,7 +460,7 @@ public class CBreakpointPropertiesDialog extends Dialog
fTitleImage.setBackground( bg );
fTitleImage.setImage( CDebugUIPlugin.getDefault().getImageRegistry().get( PREF_DLG_TITLE_IMG ) );
gd = new GridData();
gd.horizontalAlignment = gd.END;
gd.horizontalAlignment = GridData.END;
fTitleImage.setLayoutData( gd );
return fTitleArea;

View file

@ -21,6 +21,7 @@ import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.debug.core.model.IStackFrame;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
@ -259,7 +260,7 @@ public class CUISourceLocator implements IAdaptable
wizard = new AddSourceLocationWizard( fSourceLocator.getSourceLocations() );
}
WizardDialog dialog = new WizardDialog( CDebugUIPlugin.getActiveWorkbenchShell(), wizard );
if ( dialog.open() == dialog.OK )
if ( dialog.open() == Window.OK )
{
fSourceLocator.addSourceLocation( wizard.getSourceLocation() );
fNewLocationAttached = true;

View file

@ -17,6 +17,7 @@ import org.eclipse.cdt.debug.internal.ui.dialogfields.ListDialogField;
import org.eclipse.cdt.debug.internal.ui.wizards.AddSourceLocationWizard;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
@ -161,7 +162,7 @@ public class SourceLookupBlock
{
AddSourceLocationWizard wizard = new AddSourceLocationWizard( getSourceLocations() );
WizardDialog dialog = new WizardDialog( fControl.getShell(), wizard );
if ( dialog.open() == dialog.OK )
if ( dialog.open() == Window.OK )
{
fSourceListField.addElement( wizard.getSourceLocation() );
}