Eclipse PDE
Release 3.8

org.eclipse.pde.ui.target
Interface ITargetLocationEditor


public interface ITargetLocationEditor

Contributed target locations that want to support editing in the target wizard and editor must adapt their ITargetLocation to this interface.

Since:
3.7
Restriction:
This interface is not intended to be extended by clients.

Method Summary
 boolean canEdit(ITargetDefinition target, ITargetLocation targetLocation)
          Returns whether this target location can be edited by this editor.
 IWizard getEditWizard(ITargetDefinition target, ITargetLocation targetLocation)
          Returns a wizard that will be opened to edit the given target location.
 

Method Detail

canEdit

boolean canEdit(ITargetDefinition target,
                ITargetLocation targetLocation)
Returns whether this target location can be edited by this editor. This method will be called when a selection is made to determine if the edit button should be enabled.

Parameters:
target - the target definition being edited
targetLocation - the target location to edit
Returns:
whether this editor can edit the target location

getEditWizard

IWizard getEditWizard(ITargetDefinition target,
                      ITargetLocation targetLocation)
Returns a wizard that will be opened to edit the given target location. The wizard is responsible for modifying the target location and/or target. The target definition will be resolved if the wizard completes successfully.

Parameters:
target - the target definition being edited
targetLocation - the target location to edit
Returns:
wizard to open for editing the target location

Eclipse PDE
Release 3.8

Guidelines for using Eclipse APIs.

Copyright (c) 2000, 2013 IBM Corporation and others. All rights reserved.