trace/tracebuilder/com.nokia.tracebuilder.view/src/com/nokia/tracebuilder/view/LastKnownLocationWrapper.java
changeset 10 ed1c9f64298a
equal deleted inserted replaced
9:14dc2103a631 10:ed1c9f64298a
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 * Wrapper for a last known location
       
    17 *
       
    18 */
       
    19 package com.nokia.tracebuilder.view;
       
    20 
       
    21 import com.nokia.tracebuilder.engine.LastKnownLocation;
       
    22 
       
    23 /**
       
    24  * Wrapper for a last known location
       
    25  * 
       
    26  */
       
    27 final class LastKnownLocationWrapper extends WrapperBase {
       
    28 
       
    29 	/**
       
    30 	 * The location
       
    31 	 */
       
    32 	private LastKnownLocation location;
       
    33 
       
    34 	/**
       
    35 	 * Constructor
       
    36 	 * 
       
    37 	 * @param location
       
    38 	 *            the trace location
       
    39 	 * @param parent
       
    40 	 *            the parent wrapper
       
    41 	 * @param updater
       
    42 	 *            the update notifier
       
    43 	 */
       
    44 	LastKnownLocationWrapper(LastKnownLocation location, WrapperBase parent,
       
    45 			WrapperUpdater updater) {
       
    46 		super(parent, updater);
       
    47 		this.location = location;
       
    48 		location.setViewReference(this);
       
    49 	}
       
    50 
       
    51 	/*
       
    52 	 * (non-Javadoc)
       
    53 	 * 
       
    54 	 * @see com.nokia.tracebuilder.view.WrapperBase#getChildren()
       
    55 	 */
       
    56 	@Override
       
    57 	Object[] getChildren() {
       
    58 		return new Object[0];
       
    59 	}
       
    60 
       
    61 	/*
       
    62 	 * (non-Javadoc)
       
    63 	 * 
       
    64 	 * @see com.nokia.tracebuilder.view.WrapperBase#hasChildren()
       
    65 	 */
       
    66 	@Override
       
    67 	boolean hasChildren() {
       
    68 		return false;
       
    69 	}
       
    70 
       
    71 	/**
       
    72 	 * Gets the location
       
    73 	 * 
       
    74 	 * @return location
       
    75 	 */
       
    76 	LastKnownLocation getLocation() {
       
    77 		return location;
       
    78 	}
       
    79 
       
    80 }