blob: 64079be527f7b52c97716a8e1705904c2c830f2a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 Oracle. 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:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.common.utility.internal.swing;
/**
* This will be called when the user presses F3 or chooses
* 'Go To' in the context menu
*/
public interface NodeSelector
{
/**
* Select the appropriate Node in the tree or the editor panel.
*/
void selectNodeFor(Object item);
/**
* This NodeSelector will do nothing when selectNodeFor(Object) is called
*/
class DefaultNodeSelector implements NodeSelector {
public void selectNodeFor(Object item) {
//default is to do nothing
}
}
}