Show
Ignore:
Timestamp:
05/17/08 11:34:28 (8 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Update to SWT 3.4M7

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/custom/StyleRange.d

    r212 r213  
    11/******************************************************************************* 
    2  * Copyright (c) 2000, 2006 IBM Corporation and others. 
     2 * Copyright (c) 2000, 2007 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
    44 * are made available under the terms of the Eclipse Public License v1.0 
     
    4747    public int fontStyle = DWT.NORMAL; 
    4848 
    49 /++ 
    50  + DWT extension for clone implementation 
    51  +/ 
    52 protected this( StyleRange other ){ 
    53     super( other ); 
    54     start = other.start; 
    55     length = other.length; 
    56     fontStyle = other.fontStyle; 
    57 } 
    58  
    5949/** 
    6050 * Create a new style range with no styles 
     
    6353 */ 
    6454public this() { 
    65     super(null, null, null); 
     55
     56 
     57/** 
     58 * Create a new style range from an existing text style. 
     59 * 
     60 *@param style the text style to copy 
     61 * 
     62 *@since 3.4 
     63 */ 
     64public this(TextStyle style) { 
     65    super(style); 
    6666} 
    6767 
     
    145145    if (underline) return false; 
    146146    if (strikeout) return false; 
     147    if (borderStyle !is DWT.NONE) return false; 
    147148    return true; 
    148149}