mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Moved the property pages and related classes into the newly created package - "org.eclipse.cdt.debug.internal.ui.propertypages".
This commit is contained in:
parent
2c8471ce9c
commit
3c98cacf7a
7 changed files with 95 additions and 43 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-08-24 Mikhail Khodjaiants
|
||||
Moved the property pages and related classes into the newly created package - "org.eclipse.cdt.debug.internal.ui.propertypages".
|
||||
* PropertyPageMessages.properties: new
|
||||
* CBreakpointPreferenceStore.java
|
||||
* CBreakpointPropertyPage.java
|
||||
* PropertyPageMessages.java: new
|
||||
* ActionMessages.properties
|
||||
|
||||
2004-08-24 Mikhail Khodjaiants
|
||||
Replaced the "Breakpoint Properties" dialog by standard property pages.
|
||||
* CBreakpointPreferenceStore.java
|
||||
|
|
|
@ -1074,7 +1074,7 @@
|
|||
<page
|
||||
adaptable="true"
|
||||
objectClass="org.eclipse.cdt.debug.core.model.ICBreakpoint"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.CBreakpointPropertyPage"
|
||||
class="org.eclipse.cdt.debug.internal.ui.propertypages.CBreakpointPropertyPage"
|
||||
name="%CommonBreakpointPage.label"
|
||||
id="org.eclipse.cdt.debug.ui.propertypages.breakpoint.common"/>
|
||||
</extension>
|
||||
|
|
|
@ -106,26 +106,6 @@ MemoryFormatAction.2=Signed Decimal
|
|||
MemoryFormatAction.3=Unsigned Decimal
|
||||
MemoryNumberOfColumnAction.0={0, number, integer} {0, choice, 0\#columns|1\#column|2\#columns}
|
||||
MemoryNumberOfColumnAction.1=Unable to change the column number.
|
||||
CBreakpointPropertyPage.0=Ignore count must be a nonnegative integer
|
||||
CBreakpointPropertyPage.1=Not available
|
||||
CBreakpointPropertyPage.2=Function name:
|
||||
CBreakpointPropertyPage.3=C/C++ function breakpoint
|
||||
CBreakpointPropertyPage.4=Not available
|
||||
CBreakpointPropertyPage.5=Address:
|
||||
CBreakpointPropertyPage.6=C/C++ address breakpoint
|
||||
CBreakpointPropertyPage.7=File:
|
||||
CBreakpointPropertyPage.8=C/C++ line breakpoint
|
||||
CBreakpointPropertyPage.9=Line number:
|
||||
CBreakpointPropertyPage.10=Project:
|
||||
CBreakpointPropertyPage.11=C/C++ read watchpoint
|
||||
CBreakpointPropertyPage.12=C/C++ watchpoint
|
||||
CBreakpointPropertyPage.13=C/C++ access watchpoint
|
||||
CBreakpointPropertyPage.14=Expression to watch:
|
||||
CBreakpointPropertyPage.15=&Condition:
|
||||
CBreakpointPropertyPage.16=Invalid condition.
|
||||
CBreakpointPropertyPage.17=&Ignore count:
|
||||
CBreakpointPropertyPage.18=Type:
|
||||
CBreakpointPropertyPage.19=Enabled
|
||||
AddWatchpointActionDelegate.0=Cannot add watchpoint.
|
||||
AddWatchpointDialog.0=Add Watchpoint
|
||||
AddWatchpointDialog.1=Expression to watch:
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* Contributors:
|
||||
* QNX Software Systems - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.debug.internal.ui.actions;
|
||||
package org.eclipse.cdt.debug.internal.ui.propertypages;
|
||||
|
||||
import java.util.HashMap;
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
|
@ -8,7 +8,7 @@
|
|||
* Contributors:
|
||||
* QNX Software Systems - Initial API and implementation
|
||||
***********************************************************************/
|
||||
package org.eclipse.cdt.debug.internal.ui.actions;
|
||||
package org.eclipse.cdt.debug.internal.ui.propertypages;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
|
@ -51,7 +51,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
|
|||
|
||||
public BreakpointIntegerFieldEditor( String name, String labelText, Composite parent ) {
|
||||
super( name, labelText, parent );
|
||||
setErrorMessage( ActionMessages.getString( "CBreakpointPropertyPage.0" ) ); //$NON-NLS-1$
|
||||
setErrorMessage( PropertyPageMessages.getString( "CBreakpointPropertyPage.0" ) ); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -276,8 +276,8 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
|
|||
private void createTypeSpecificLabelFieldEditors( ICBreakpoint breakpoint ) {
|
||||
if ( breakpoint instanceof ICFunctionBreakpoint ) {
|
||||
ICFunctionBreakpoint fbrkpt = (ICFunctionBreakpoint)breakpoint;
|
||||
addField( createLabelEditor( getFieldEditorParent(), ActionMessages.getString( "CBreakpointPropertyPage.18" ), ActionMessages.getString( "CBreakpointPropertyPage.3" ) ) ); //$NON-NLS-1$//$NON-NLS-2$
|
||||
String function = ActionMessages.getString( "CBreakpointPropertyPage.1" ); //$NON-NLS-1$
|
||||
addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.18" ), PropertyPageMessages.getString( "CBreakpointPropertyPage.3" ) ) ); //$NON-NLS-1$//$NON-NLS-2$
|
||||
String function = PropertyPageMessages.getString( "CBreakpointPropertyPage.1" ); //$NON-NLS-1$
|
||||
try {
|
||||
function = fbrkpt.getFunction();
|
||||
}
|
||||
|
@ -286,13 +286,13 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
|
|||
catch( NumberFormatException e ) {
|
||||
}
|
||||
if ( function != null ) {
|
||||
addField( createLabelEditor( getFieldEditorParent(), ActionMessages.getString( "CBreakpointPropertyPage.2" ), function ) ); //$NON-NLS-1$
|
||||
addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.2" ), function ) ); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
else if ( breakpoint instanceof ICAddressBreakpoint ) {
|
||||
ICAddressBreakpoint abrkpt = (ICAddressBreakpoint)breakpoint;
|
||||
addField( createLabelEditor( getFieldEditorParent(), ActionMessages.getString( "CBreakpointPropertyPage.18" ), ActionMessages.getString( "CBreakpointPropertyPage.6" ) ) ); //$NON-NLS-1$//$NON-NLS-2$
|
||||
String address = ActionMessages.getString( "CBreakpointPropertyPage.4" ); //$NON-NLS-1$
|
||||
addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.18" ), PropertyPageMessages.getString( "CBreakpointPropertyPage.6" ) ) ); //$NON-NLS-1$//$NON-NLS-2$
|
||||
String address = PropertyPageMessages.getString( "CBreakpointPropertyPage.4" ); //$NON-NLS-1$
|
||||
try {
|
||||
address = CDebugUtils.toHexAddressString( Long.parseLong( abrkpt.getAddress() ) );
|
||||
}
|
||||
|
@ -301,14 +301,14 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
|
|||
catch( NumberFormatException e ) {
|
||||
}
|
||||
if ( address != null ) {
|
||||
addField( createLabelEditor( getFieldEditorParent(), ActionMessages.getString( "CBreakpointPropertyPage.5" ), address ) ); //$NON-NLS-1$
|
||||
addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.5" ), address ) ); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
else if ( breakpoint instanceof ILineBreakpoint ) {
|
||||
addField( createLabelEditor( getFieldEditorParent(), ActionMessages.getString( "CBreakpointPropertyPage.18" ), ActionMessages.getString( "CBreakpointPropertyPage.8" ) ) ); //$NON-NLS-1$//$NON-NLS-2$
|
||||
addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.18" ), PropertyPageMessages.getString( "CBreakpointPropertyPage.8" ) ) ); //$NON-NLS-1$//$NON-NLS-2$
|
||||
String fileName = breakpoint.getMarker().getResource().getLocation().toOSString();
|
||||
if ( fileName != null ) {
|
||||
addField( createLabelEditor( getFieldEditorParent(), ActionMessages.getString( "CBreakpointPropertyPage.7" ), fileName ) ); //$NON-NLS-1$
|
||||
addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.7" ), fileName ) ); //$NON-NLS-1$
|
||||
}
|
||||
ILineBreakpoint lBreakpoint = (ILineBreakpoint)breakpoint;
|
||||
StringBuffer lineNumber = new StringBuffer( 4 );
|
||||
|
@ -322,7 +322,7 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
|
|||
CDebugUIPlugin.log( ce );
|
||||
}
|
||||
if ( lineNumber.length() > 0 ) {
|
||||
addField( createLabelEditor( getFieldEditorParent(), ActionMessages.getString( "CBreakpointPropertyPage.9" ), lineNumber.toString() ) ); //$NON-NLS-1$
|
||||
addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.9" ), lineNumber.toString() ) ); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
else if ( breakpoint instanceof ICWatchpoint ) {
|
||||
|
@ -331,39 +331,39 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
|
|||
String expression = ""; //$NON-NLS-1$
|
||||
try {
|
||||
if ( watchpoint.isReadType() && !watchpoint.isWriteType() )
|
||||
type = ActionMessages.getString( "CBreakpointPropertyPage.11" ); //$NON-NLS-1$
|
||||
type = PropertyPageMessages.getString( "CBreakpointPropertyPage.11" ); //$NON-NLS-1$
|
||||
else if ( !watchpoint.isReadType() && watchpoint.isWriteType() )
|
||||
type = ActionMessages.getString( "CBreakpointPropertyPage.12" ); //$NON-NLS-1$
|
||||
type = PropertyPageMessages.getString( "CBreakpointPropertyPage.12" ); //$NON-NLS-1$
|
||||
else
|
||||
type = ActionMessages.getString( "CBreakpointPropertyPage.13" ); //$NON-NLS-1$
|
||||
type = PropertyPageMessages.getString( "CBreakpointPropertyPage.13" ); //$NON-NLS-1$
|
||||
expression = watchpoint.getExpression();
|
||||
}
|
||||
catch( CoreException ce ) {
|
||||
CDebugUIPlugin.log( ce );
|
||||
}
|
||||
addField( createLabelEditor( getFieldEditorParent(), ActionMessages.getString( "CBreakpointPropertyPage.18" ), type ) ); //$NON-NLS-1$
|
||||
addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.18" ), type ) ); //$NON-NLS-1$
|
||||
String projectName = breakpoint.getMarker().getResource().getLocation().toOSString();
|
||||
if ( projectName != null ) {
|
||||
addField( createLabelEditor( getFieldEditorParent(), ActionMessages.getString( "CBreakpointPropertyPage.10" ), projectName ) ); //$NON-NLS-1$
|
||||
addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.10" ), projectName ) ); //$NON-NLS-1$
|
||||
}
|
||||
addField( createLabelEditor( getFieldEditorParent(), ActionMessages.getString( "CBreakpointPropertyPage.14" ), expression ) ); //$NON-NLS-1$
|
||||
addField( createLabelEditor( getFieldEditorParent(), PropertyPageMessages.getString( "CBreakpointPropertyPage.14" ), expression ) ); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
protected void createEnabledField( Composite parent ) {
|
||||
fEnabled = new BooleanFieldEditor( CBreakpointPreferenceStore.ENABLED, ActionMessages.getString( "CBreakpointPropertyPage.19" ), parent ); //$NON-NLS-1$
|
||||
fEnabled = new BooleanFieldEditor( CBreakpointPreferenceStore.ENABLED, PropertyPageMessages.getString( "CBreakpointPropertyPage.19" ), parent ); //$NON-NLS-1$
|
||||
addField( fEnabled );
|
||||
}
|
||||
|
||||
protected void createConditionEditor( Composite parent ) {
|
||||
fCondition = new BreakpointStringFieldEditor( CBreakpointPreferenceStore.CONDITION, ActionMessages.getString( "CBreakpointPropertyPage.15" ), parent ); //$NON-NLS-1$
|
||||
fCondition = new BreakpointStringFieldEditor( CBreakpointPreferenceStore.CONDITION, PropertyPageMessages.getString( "CBreakpointPropertyPage.15" ), parent ); //$NON-NLS-1$
|
||||
fCondition.setEmptyStringAllowed( true );
|
||||
fCondition.setErrorMessage( ActionMessages.getString( "CBreakpointPropertyPage.16" ) ); //$NON-NLS-1$
|
||||
fCondition.setErrorMessage( PropertyPageMessages.getString( "CBreakpointPropertyPage.16" ) ); //$NON-NLS-1$
|
||||
addField( fCondition );
|
||||
}
|
||||
|
||||
protected void createIgnoreCountEditor( Composite parent ) {
|
||||
fIgnoreCount = new BreakpointIntegerFieldEditor( CBreakpointPreferenceStore.IGNORE_COUNT, ActionMessages.getString( "CBreakpointPropertyPage.17" ), parent ); //$NON-NLS-1$
|
||||
fIgnoreCount = new BreakpointIntegerFieldEditor( CBreakpointPreferenceStore.IGNORE_COUNT, PropertyPageMessages.getString( "CBreakpointPropertyPage.17" ), parent ); //$NON-NLS-1$
|
||||
fIgnoreCount.setValidRange( 0, Integer.MAX_VALUE );
|
||||
fIgnoreCountTextControl = fIgnoreCount.getTextControl( parent );
|
||||
try {
|
|
@ -0,0 +1,33 @@
|
|||
/**********************************************************************
|
||||
* 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.propertypages;
|
||||
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
public class PropertyPageMessages {
|
||||
|
||||
private static final String BUNDLE_NAME = "org.eclipse.cdt.debug.internal.ui.propertypages.PropertyPageMessages"; //$NON-NLS-1$
|
||||
|
||||
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
|
||||
|
||||
private PropertyPageMessages() {
|
||||
}
|
||||
|
||||
public static String getString( String key ) {
|
||||
try {
|
||||
return RESOURCE_BUNDLE.getString( key );
|
||||
}
|
||||
catch( MissingResourceException e ) {
|
||||
return '!' + key + '!';
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
###############################################################################
|
||||
# Copyright (c) 2003, 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
|
||||
###############################################################################
|
||||
|
||||
CBreakpointPropertyPage.0=Ignore count must be a nonnegative integer
|
||||
CBreakpointPropertyPage.1=Not available
|
||||
CBreakpointPropertyPage.2=Function name:
|
||||
CBreakpointPropertyPage.3=C/C++ function breakpoint
|
||||
CBreakpointPropertyPage.4=Not available
|
||||
CBreakpointPropertyPage.5=Address:
|
||||
CBreakpointPropertyPage.6=C/C++ address breakpoint
|
||||
CBreakpointPropertyPage.7=File:
|
||||
CBreakpointPropertyPage.8=C/C++ line breakpoint
|
||||
CBreakpointPropertyPage.9=Line number:
|
||||
CBreakpointPropertyPage.10=Project:
|
||||
CBreakpointPropertyPage.11=C/C++ read watchpoint
|
||||
CBreakpointPropertyPage.12=C/C++ watchpoint
|
||||
CBreakpointPropertyPage.13=C/C++ access watchpoint
|
||||
CBreakpointPropertyPage.14=Expression to watch:
|
||||
CBreakpointPropertyPage.15=&Condition:
|
||||
CBreakpointPropertyPage.16=Invalid condition.
|
||||
CBreakpointPropertyPage.17=&Ignore count:
|
||||
CBreakpointPropertyPage.18=Type:
|
||||
CBreakpointPropertyPage.19=Enabled
|
Loading…
Add table
Reference in a new issue