Skip to content

Commit

Permalink
Modify some bug comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xusong Yuan committed Oct 29, 2012
1 parent 0a5cdd6 commit 0154150
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
Expand Up @@ -76,7 +76,7 @@ protected void createGraphicalViewer( Composite parent )
// // bidi_hcg end
// rulerComp = new EditorRulerComposite( parent, SWT.NONE );
super.createGraphicalViewer( rulerComp );
if(Constants.OS_LINUX.equalsIgnoreCase( Platform.getOS( ) )){//For TED49703:Linux and Windows has different color behavior.Add OS judgment to set rulerCompsite background color.
if(Constants.OS_LINUX.equalsIgnoreCase( Platform.getOS( ) )){//Linux and Windows has different color behavior.Add OS judgment to set rulerCompsite background color.
rulerComp.setBackground(ColorManager.getColor(240, 240, 240));
}
rulerComp.setGraphicalViewer( (ScrollingGraphicalViewer) getGraphicalViewer( ), getModel( ) );
Expand Down
Expand Up @@ -287,7 +287,7 @@ protected void preview( String format, boolean allowPage )
if ( editor != null )
{
IFormPage activePageInstance=editor.getActivePageInstance();
if ( model.needsSave( ) ||(activePageInstance!=null && activePageInstance.isDirty()))//For TED 52325:Do save when current active page is dirty.
if ( model.needsSave( ) ||(activePageInstance!=null && activePageInstance.isDirty()))//Do save when current active page is dirty.
{
editor.doSave( null );
}
Expand Down
Expand Up @@ -115,7 +115,6 @@ protected boolean initDialog( )
no.setText( IDialogConstants.NO_LABEL );
/**
* Set cancel button on focus when initial.
* This change if for TED 52981
*/
no.setFocus();
getShell( ).setDefaultButton( no );
Expand Down
Expand Up @@ -194,7 +194,7 @@ public void widgetSelected( SelectionEvent e )
{
preName.setItems( getPredefinedStyleNames( null ) );
}
if(preName.getItemCount()==1){//for TED42836:If only one item,set default selected.
if(preName.getItemCount()==1){//If only one item,set default selected.
preName.select(0);
}

Expand Down
Expand Up @@ -2196,7 +2196,7 @@ else if ( defaultValue != null )
isRequired.setSelection( selectedParameter.isRequired( ) );

if ( selectedParameter == inputParameterGroup.getParameters( )
.get( inputParameterGroup.getParameters( ).getCount( ) - 1 ) && selectedParameter.isMustMatch() )//For TED 52772:Add isMustMatch expression to control isMultiple disable if display type is combo box when parameter selected.
.get( inputParameterGroup.getParameters( ).getCount( ) - 1 ) && selectedParameter.isMustMatch() )//Add isMustMatch expression to control isMultiple disable if display type is combo box when parameter selected.
{
isMultiple.setEnabled( true );
isMultiple.setSelection( DesignChoiceConstants.SCALAR_PARAM_TYPE_MULTI_VALUE.equals( selectedParameter.getParamType( ) ) );
Expand Down
Expand Up @@ -66,7 +66,7 @@ public static Strategy getQueryExecutionStrategy( DataEngineSession session, IQu
{
SortingOptimizer opt = new SortingOptimizer( dataSet, query );

// for ted 43040 disable progressive viewing, will fix this problem in 11sp4M2
// disable progressive viewing, will fix this problem in 11sp4M2
if ( session.getEngineContext( ).getMode( ) == DataEngineContext.DIRECT_PRESENTATION )
{
return Strategy.Complex;
Expand Down

0 comments on commit 0154150

Please sign in to comment.