core/com.nokia.carbide.cpp/src/com/nokia/carbide/cpp/actions/DisplayReleaseNotesAction.java
author wpaul
Wed, 25 Mar 2009 12:24:24 -0500
changeset 9 6ef327765a4e
parent 2 d760517a8095
child 127 c937102a5510
permissions -rw-r--r--
added copyright
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     1
/*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     3
* All rights reserved.
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     4
* This component and the accompanying materials are made available
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     6
* which accompanies this distribution, and is available
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     8
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     9
* Initial Contributors:
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    10
* Nokia Corporation - initial contribution.
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    11
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    12
* Contributors:
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    13
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    14
* Description: 
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    15
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    16
*/
2
cawthron
parents:
diff changeset
    17
package com.nokia.carbide.cpp.actions;
cawthron
parents:
diff changeset
    18
cawthron
parents:
diff changeset
    19
import java.net.URL;
cawthron
parents:
diff changeset
    20
cawthron
parents:
diff changeset
    21
import org.eclipse.jface.action.IAction;
cawthron
parents:
diff changeset
    22
import org.eclipse.jface.viewers.ISelection;
cawthron
parents:
diff changeset
    23
import org.eclipse.ui.IWorkbenchWindow;
cawthron
parents:
diff changeset
    24
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
cawthron
parents:
diff changeset
    25
import org.eclipse.ui.PlatformUI;
cawthron
parents:
diff changeset
    26
import org.eclipse.ui.help.IWorkbenchHelpSystem;
cawthron
parents:
diff changeset
    27
cawthron
parents:
diff changeset
    28
cawthron
parents:
diff changeset
    29
public class DisplayReleaseNotesAction implements
cawthron
parents:
diff changeset
    30
		IWorkbenchWindowActionDelegate {
cawthron
parents:
diff changeset
    31
cawthron
parents:
diff changeset
    32
	public DisplayReleaseNotesAction() {
cawthron
parents:
diff changeset
    33
	}
cawthron
parents:
diff changeset
    34
cawthron
parents:
diff changeset
    35
	/* (non-Javadoc)
cawthron
parents:
diff changeset
    36
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
cawthron
parents:
diff changeset
    37
	 */
cawthron
parents:
diff changeset
    38
	public void dispose() {
cawthron
parents:
diff changeset
    39
cawthron
parents:
diff changeset
    40
	}
cawthron
parents:
diff changeset
    41
cawthron
parents:
diff changeset
    42
	/* (non-Javadoc)
cawthron
parents:
diff changeset
    43
	 * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
cawthron
parents:
diff changeset
    44
	 */
cawthron
parents:
diff changeset
    45
	public void init(IWorkbenchWindow window) {
cawthron
parents:
diff changeset
    46
cawthron
parents:
diff changeset
    47
	}
cawthron
parents:
diff changeset
    48
cawthron
parents:
diff changeset
    49
	/* (non-Javadoc)
cawthron
parents:
diff changeset
    50
	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
cawthron
parents:
diff changeset
    51
	 */
cawthron
parents:
diff changeset
    52
	public void run(IAction action) {
cawthron
parents:
diff changeset
    53
		IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem();
cawthron
parents:
diff changeset
    54
		URL url = helpSystem.resolve("com.nokia.carbide.cpp.doc.user/html/release_notes.htm", true);
cawthron
parents:
diff changeset
    55
		String urlPath = url.getProtocol()+"://"+url.getAuthority()+"/"+"help/topic/com.nokia.carbide.cpp.doc.user/html/release_notes.htm";
cawthron
parents:
diff changeset
    56
		helpSystem.displayHelpResource(urlPath);
cawthron
parents:
diff changeset
    57
	}
cawthron
parents:
diff changeset
    58
cawthron
parents:
diff changeset
    59
	/* (non-Javadoc)
cawthron
parents:
diff changeset
    60
	 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
cawthron
parents:
diff changeset
    61
	 */
cawthron
parents:
diff changeset
    62
	public void selectionChanged(IAction action, ISelection selection) {
cawthron
parents:
diff changeset
    63
cawthron
parents:
diff changeset
    64
	}
cawthron
parents:
diff changeset
    65
cawthron
parents:
diff changeset
    66
}