org.eclipse.ui.PerspectiveAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workbench Show documentation
Show all versions of workbench Show documentation
This plug-in contains the bulk of the Workbench implementation, and depends on JFace, SWT, and Core Runtime. It cannot be used independently from org.eclipse.ui. Workbench client plug-ins should not depend directly on this plug-in.
The newest version!
/*******************************************************************************
* Copyright (c) 2004, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui;
/**
* This adapter class provides default implementations for the methods described
* by the IPerspectiveListener
interface and its extension
* interfaces.
*
* Classes that wish to deal with events which occur as perspectives are added,
* removed, activated and changed, can extend this class and override only the
* methods which they are interested in.
*
*
* @see org.eclipse.ui.IPerspectiveListener
* @see org.eclipse.ui.IPerspectiveListener2
* @see org.eclipse.ui.IPerspectiveListener3
* @see org.eclipse.ui.IPerspectiveListener4
* @since 3.1
*/
public class PerspectiveAdapter implements IPerspectiveListener4 {
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.IPerspectiveListener3#perspectiveOpened(org.eclipse.ui.IWorkbenchPage,
* org.eclipse.ui.IPerspectiveDescriptor)
*/
public void perspectiveOpened(IWorkbenchPage page,
IPerspectiveDescriptor perspective) {
// do nothing
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.IPerspectiveListener3#perspectiveClosed(org.eclipse.ui.IWorkbenchPage,
* org.eclipse.ui.IPerspectiveDescriptor)
*/
public void perspectiveClosed(IWorkbenchPage page,
IPerspectiveDescriptor perspective) {
// do nothing
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.IPerspectiveListener2#perspectiveChanged(org.eclipse.ui.IWorkbenchPage,
* org.eclipse.ui.IPerspectiveDescriptor,
* org.eclipse.ui.IWorkbenchPartReference, java.lang.String)
*/
public void perspectiveChanged(IWorkbenchPage page,
IPerspectiveDescriptor perspective,
IWorkbenchPartReference partRef, String changeId) {
// do nothing
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.IPerspectiveListener#perspectiveActivated(org.eclipse.ui.IWorkbenchPage,
* org.eclipse.ui.IPerspectiveDescriptor)
*/
public void perspectiveActivated(IWorkbenchPage page,
IPerspectiveDescriptor perspective) {
// do nothing
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.IPerspectiveListener#perspectiveChanged(org.eclipse.ui.IWorkbenchPage,
* org.eclipse.ui.IPerspectiveDescriptor, java.lang.String)
*/
public void perspectiveChanged(IWorkbenchPage page,
IPerspectiveDescriptor perspective, String changeId) {
// do nothing
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.IPerspectiveListener3#perspectiveDeactivated(org.eclipse.ui.IWorkbenchPage,
* org.eclipse.ui.IPerspectiveDescriptor)
*/
public void perspectiveDeactivated(IWorkbenchPage page,
IPerspectiveDescriptor perspective) {
// do nothing
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.IPerspectiveListener3#perspectiveSavedAs(org.eclipse.ui.IWorkbenchPage,
* org.eclipse.ui.IPerspectiveDescriptor,
* org.eclipse.ui.IPerspectiveDescriptor)
*/
public void perspectiveSavedAs(IWorkbenchPage page,
IPerspectiveDescriptor oldPerspective,
IPerspectiveDescriptor newPerspective) {
// do nothing
}
/**
* {@inheritDoc}
* @since 3.2
*/
public void perspectivePreDeactivate(IWorkbenchPage page,
IPerspectiveDescriptor perspective) {
// do nothing
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy