/**********************************************************************
- * Copyright (c) 2011 Ericsson
+ * Copyright (c) 2011, 2012 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers;
import org.eclipse.jface.action.Action;
-import org.eclipse.linuxtools.tmf.ui.ITmfImageConstants;
-import org.eclipse.linuxtools.tmf.ui.TmfUiPlugin;
+import org.eclipse.linuxtools.internal.tmf.ui.ITmfImageConstants;
+import org.eclipse.linuxtools.internal.tmf.ui.TmfUiPlugin;
import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDView;
import org.eclipse.linuxtools.tmf.ui.views.uml2sd.util.SDMessages;
/**
- * Moves the focus on the first page in the sequence diagram view.
+ * Action class implementation to move the focus to the first page of the whole sequence diagram.
+ *
+ * @version 1.0
+ * @author Bernd Hufmann
*/
public class FirstPage extends Action {
// ------------------------------------------------------------------------
- // Attributes
+ // Constants
// ------------------------------------------------------------------------
+ /**
+ * The action ID.
+ */
public static final String ID = "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.firstpage"; //$NON-NLS-1$
-
+
+ // ------------------------------------------------------------------------
+ // Attributes
+ // ------------------------------------------------------------------------
+ /**
+ * The sequence diagram view reference
+ */
protected SDView fView = null;
// ------------------------------------------------------------------------
// Constructors
// ------------------------------------------------------------------------
- public FirstPage(SDView theView) {
+ /**
+ * Default constructor
+ *
+ * @param view the view reference
+ */
+ public FirstPage(SDView view) {
super();
- fView = theView;
+ fView = view;
setText(SDMessages._139);
setToolTipText(SDMessages._140);
setId(ID);
}
// ------------------------------------------------------------------------
- // Operations
+ // Methods
// ------------------------------------------------------------------------
/*
* (non-Javadoc)