
org.eclipse.debug.ui.sourcelookup.ISourceContainerBrowser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.debug.ui Show documentation
Show all versions of org.eclipse.debug.ui Show documentation
This is org.eclipse.debug.ui jar used by Scout SDK
The newest version!
/*******************************************************************************
* Copyright (c) 2003, 2005 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.debug.ui.sourcelookup;
import org.eclipse.debug.core.sourcelookup.ISourceContainer;
import org.eclipse.debug.core.sourcelookup.ISourceLookupDirector;
import org.eclipse.swt.widgets.Shell;
/**
* Creates and edits source containers for a source lookup director.
* Contributed via a source container presentation extension for
* a specific type of source container.
*
* Following is an example source container presentation definition
* that contributes a source container browser via the
* browserClass
attribute.
*
* <extension point="org.eclipse.debug.ui.sourceContainerPresentations">
* <sourceContainerPresentation
* browserClass="org.eclipse.debug.internal.ui.sourcelookup.browsers.ProjectSourceContainerBrowser"
* containerTypeID="org.eclipse.debug.core.containerType.project"
* icon="icons/full/obj16/prj_obj.png"
* id="org.eclipse.debug.ui.containerPresentation.project">
* </sourceContainerPresentation>
* </extension>
*
*
* @since 3.0
*/
public interface ISourceContainerBrowser {
/**
* Creates and returns new source containers to add to the given
* source lookup director.
*
* @param shell the shell to use to parent any dialogs
* @param director the director the new containers will be added to
* @return the new source containers to add
*/
public ISourceContainer[] addSourceContainers(Shell shell, ISourceLookupDirector director);
/**
* Returns whether this browser can add any source containers to the
* given source lookup director.
*
* @param director source lookup director to potentially add source
* containers to
* @return whether this browser can add any source containers to the
* given source lookup director
*/
public boolean canAddSourceContainers(ISourceLookupDirector director);
/**
* Edits and returns source containers to replace the given source
* containers.
*
* @param shell the shell to use to parent any dialogs
* @param director the director the new containers will be added to
* @param containers the source containers to be edited
* @return the replacement source containers
*/
public ISourceContainer[] editSourceContainers(Shell shell, ISourceLookupDirector director, ISourceContainer[] containers);
/**
* Returns whether this browser can edit the given source containers.
*
* @param director source lookup director to potentially edit source
* containers for
* @param containers the containers to edit
* @return whether this browser can edit the given source containers
*/
public boolean canEditSourceContainers(ISourceLookupDirector director, ISourceContainer[] containers);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy