1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00

[268230] - [view model] Mark view model API as provisional.

This commit is contained in:
Pawel Piech 2009-03-11 21:40:58 +00:00
parent 03986e7dde
commit fc1da4e112
48 changed files with 15 additions and 80 deletions

View file

@ -28,20 +28,20 @@ Export-Package: org.eclipse.cdt.dsf.debug.internal.ui.viewmodel.update.provision
org.eclipse.cdt.dsf.debug.ui.contexts,
org.eclipse.cdt.dsf.debug.ui.memory,
org.eclipse.cdt.dsf.debug.ui.sourcelookup,
org.eclipse.cdt.dsf.debug.ui.viewmodel,
org.eclipse.cdt.dsf.debug.ui.viewmodel.actions,
org.eclipse.cdt.dsf.debug.ui.viewmodel.expression;x-internal:=true,
org.eclipse.cdt.dsf.debug.ui.viewmodel.launch;x-internal:=true,
org.eclipse.cdt.dsf.debug.ui.viewmodel.launch.actions,
org.eclipse.cdt.dsf.debug.ui.viewmodel.modules;x-internal:=true,
org.eclipse.cdt.dsf.debug.ui.viewmodel.modules.detail,
org.eclipse.cdt.dsf.debug.ui.viewmodel.numberformat,
org.eclipse.cdt.dsf.debug.ui.viewmodel.register;x-internal:=true,
org.eclipse.cdt.dsf.debug.ui.viewmodel.update,
org.eclipse.cdt.dsf.debug.ui.viewmodel.variable;x-internal:=true,
org.eclipse.cdt.dsf.debug.ui.viewmodel;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.debug.ui.viewmodel.actions;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.debug.ui.viewmodel.expression;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.debug.ui.viewmodel.launch;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.debug.ui.viewmodel.launch.actions;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.debug.ui.viewmodel.modules;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.debug.ui.viewmodel.modules.detail;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.debug.ui.viewmodel.numberformat;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.debug.ui.viewmodel.register;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.debug.ui.viewmodel.update;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.debug.ui.viewmodel.variable;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.ui.concurrent,
org.eclipse.cdt.dsf.ui.viewmodel,
org.eclipse.cdt.dsf.ui.viewmodel.datamodel,
org.eclipse.cdt.dsf.ui.viewmodel.properties,
org.eclipse.cdt.dsf.ui.viewmodel.update
org.eclipse.cdt.dsf.ui.viewmodel;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.ui.viewmodel.datamodel;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.ui.viewmodel.properties;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui",
org.eclipse.cdt.dsf.ui.viewmodel.update;x-friends:="org.eclipse.cdt.dsf.gdb.ui,org.eclipse.cdt.examples.dsf,org.eclipse.cdt.examples.dsf.pda.ui"
Bundle-RequiredExecutionEnvironment: J2SE-1.5

View file

@ -26,7 +26,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationCont
*
* @since 1.1
*/
@SuppressWarnings("restriction")
public class AbstractDebugVMAdapter extends AbstractDMVMAdapter
implements ISteppingControlParticipant
{

View file

@ -32,7 +32,6 @@ import org.eclipse.ui.IViewPart;
/**
* @since 1.1
*/
@SuppressWarnings("restriction")
abstract public class AbstractVMProviderActionDelegate implements IViewActionDelegate, IDebugContextListener, IActionDelegate2 {
private IViewPart fView = null;

View file

@ -37,7 +37,6 @@ import org.eclipse.ui.services.IServiceLocator;
*
* @since 1.1
*/
@SuppressWarnings("restriction")
public class VMHandlerUtils {
/**

View file

@ -39,7 +39,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IChildrenUpdate;
* by the sub-class as well.
* </p>
*/
@SuppressWarnings("restriction")
public abstract class AbstractExpressionVMNode extends AbstractDMVMNode
implements IExpressionVMNode
{

View file

@ -19,7 +19,6 @@ import org.eclipse.jface.resource.ImageDescriptor;
/**
*
*/
@SuppressWarnings("restriction")
public class ExpressionColumnPresentation implements IColumnPresentation {
public static final String ID = DsfUIPlugin.PLUGIN_ID + ".EXPRESSION_COLUMN_PRESENTATION_ID"; //$NON-NLS-1$

View file

@ -23,7 +23,6 @@ import org.eclipse.core.runtime.Status;
*
* @see ExpressionVMProvider
*/
@SuppressWarnings("restriction")
public class ExpressionVMProviderContentStragegy extends DefaultVMContentProviderStrategy {
public ExpressionVMProviderContentStragegy(ExpressionVMProvider provider) {
super(provider);

View file

@ -28,7 +28,6 @@ import org.eclipse.jface.viewers.TreePath;
*
* @see ExpressionVMProvider
*/
@SuppressWarnings("restriction")
public class ExpressionVMProviderModelProxyStrategy extends DefaultVMModelProxyStrategy {
public ExpressionVMProviderModelProxyStrategy(ExpressionVMProvider provider, Object rootElement) {

View file

@ -18,7 +18,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
* this update needs to create an expression element based on the tree path and the
* expression object in this update.
*/
@SuppressWarnings("restriction")
public interface IExpressionUpdate extends IViewerUpdate {
/**

View file

@ -24,7 +24,6 @@ import org.eclipse.jface.resource.JFaceResources;
*
* @since 1.1
*/
@SuppressWarnings("restriction")
public class InvalidExpressionVMContext extends AbstractVMContext implements IElementLabelProvider {
final private IExpression fExpression;

View file

@ -25,7 +25,6 @@ import org.eclipse.jface.viewers.TreePath;
/**
*
*/
@SuppressWarnings("restriction")
class VMExpressionUpdate extends VMViewerUpdate implements IExpressionUpdate {
private final IExpression fExpression;

View file

@ -58,7 +58,6 @@ import org.eclipse.jface.viewers.IStructuredSelection;
/**
* @since 1.1
*/
@SuppressWarnings("restriction")
public class AbstractLaunchVMProvider extends AbstractDMVMProvider
implements IDebugEventSetListener, ILaunchesListener2
{

View file

@ -22,7 +22,6 @@ import org.eclipse.debug.ui.IDebugUIConstants;
* Default model selection policy factory for DSF.
* @since 1.1
*/
@SuppressWarnings("restriction")
public class DefaultDsfModelSelectionPolicyFactory implements IModelSelectionPolicyFactory {
/*

View file

@ -32,7 +32,6 @@ import org.eclipse.jface.viewers.TreeSelection;
* (<code>DefaultSelectionPolicy</code>).
* @since 1.1
*/
@SuppressWarnings("restriction")
public class DefaultDsfSelectionPolicy implements IModelSelectionPolicy {
private IDMContext fDMContext;

View file

@ -35,7 +35,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta;
* the root of a hierarchy. It does not implement the label provider
* functionality, so the default adapters should be used to retrieve the label.
*/
@SuppressWarnings("restriction")
public class LaunchRootVMNode extends RootVMNode
implements IRootVMNode
{

View file

@ -43,7 +43,6 @@ import org.eclipse.ui.IWorkbenchPart;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class NumberFormatsPropertyTester extends PropertyTester {
private static final String SUPPORTED = "areNumberFormatsSupported"; //$NON-NLS-1$

View file

@ -25,7 +25,6 @@ import org.eclipse.cdt.dsf.ui.viewmodel.update.AbstractCachingVMProvider;
import org.eclipse.cdt.dsf.ui.viewmodel.update.UserEditEvent;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
@SuppressWarnings("restriction")
public class RegisterBitFieldCellModifier extends WatchExpressionCellModifier {
public static enum BitFieldEditorStyle { NOTHING, BITFIELDCOMBO, BITFIELDTEXT }

View file

@ -24,7 +24,6 @@ import org.eclipse.cdt.dsf.ui.viewmodel.update.AbstractCachingVMProvider;
import org.eclipse.cdt.dsf.ui.viewmodel.update.UserEditEvent;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
@SuppressWarnings("restriction")
public class RegisterCellModifier extends WatchExpressionCellModifier {
private AbstractCachingVMProvider fProvider;

View file

@ -19,7 +19,6 @@ import org.eclipse.jface.resource.ImageDescriptor;
/**
*
*/
@SuppressWarnings("restriction")
public class RegisterColumnPresentation implements IColumnPresentation {
public static final String ID = DsfUIPlugin.PLUGIN_ID + ".REGISTERS_COLUMN_PRESENTATION_ID"; //$NON-NLS-1$

View file

@ -25,7 +25,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementMementoRe
* Register View does not collapse and redraw when going from frame to frame
* when stepping or just when selecting within the view.
*/
@SuppressWarnings("restriction")
public class RegisterRootDMVMNode extends RootDMVMNode implements IElementMementoProvider {
public RegisterRootDMVMNode(AbstractVMProvider provider) {

View file

@ -44,7 +44,6 @@ import org.eclipse.jface.util.PropertyChangeEvent;
/**
* Provides the VIEW MODEL for the DEBUG MODEL REGISTER view.
*/
@SuppressWarnings("restriction")
public class RegisterVMProvider extends AbstractDMVMProvider
{
private IPropertyChangeListener fPreferencesListener = new IPropertyChangeListener() {

View file

@ -21,7 +21,6 @@ import org.eclipse.cdt.dsf.ui.viewmodel.update.UserEditEvent;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
@SuppressWarnings("restriction")
public class VariableCellModifier extends WatchExpressionCellModifier {
private AbstractCachingVMProvider fProvider;

View file

@ -19,7 +19,6 @@ import org.eclipse.jface.resource.ImageDescriptor;
/**
*
*/
@SuppressWarnings("restriction")
public class VariableColumnPresentation implements IColumnPresentation {
public static final String ID = DsfUIPlugin.PLUGIN_ID + ".VARIABLES_COLUMN_PRESENTATION_ID"; //$NON-NLS-1$

View file

@ -24,7 +24,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class ViewerCountingRequestMonitor extends CountingRequestMonitor {
private final IViewerUpdate fUpdate;

View file

@ -43,7 +43,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
* @since 1.0
*/
@ThreadSafe
@SuppressWarnings("restriction")
abstract public class AbstractVMAdapter implements IVMAdapter
{

View file

@ -29,7 +29,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
abstract public class AbstractVMNode implements IVMNode {
private final AbstractVMProvider fProvider;

View file

@ -44,7 +44,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
* @since 1.0
*/
@ConfinedToDsfExecutor("#getExecutor()")
@SuppressWarnings("restriction")
public class DefaultVMContentProviderStrategy implements IElementContentProvider {
private final AbstractVMProvider fVMProvider;

View file

@ -26,7 +26,6 @@ import org.eclipse.jface.viewers.Viewer;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public interface IVMModelProxy extends IModelProxy {
/**

View file

@ -46,7 +46,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta;
* @since 1.0
*/
@ConfinedToDsfExecutor("")
@SuppressWarnings("restriction")
public interface IVMNode extends IElementContentProvider
{
/**

View file

@ -50,7 +50,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerInputProvi
* @since 1.0
*/
@ConfinedToDsfExecutor("#getExecutor()")
@SuppressWarnings("restriction")
public interface IVMProvider
extends IElementContentProvider, IModelProxyFactory, IColumnPresentationFactory, IViewerInputProvider
{

View file

@ -19,7 +19,6 @@ import org.eclipse.jface.viewers.Viewer;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class ModelProxyInstalledEvent {
private final IModelProxy fProxy;
private final Viewer fViewer;

View file

@ -23,7 +23,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class RootVMNode extends AbstractVMNode implements IRootVMNode {
public RootVMNode(AbstractVMProvider provider) {

View file

@ -24,7 +24,6 @@ import org.eclipse.jface.viewers.TreePath;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class VMChildrenCountUpdate extends VMViewerUpdate implements IChildrenCountUpdate {
final private DataRequestMonitor<Integer> fCountRequestMonitor;

View file

@ -27,7 +27,6 @@ import org.eclipse.jface.viewers.TreePath;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class VMChildrenUpdate extends VMViewerUpdate implements IChildrenUpdate {
private final int fOffset;
private final int fLength;

View file

@ -24,7 +24,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.ModelDelta;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class VMDelta extends ModelDelta {
private VMDelta fParent;

View file

@ -24,7 +24,6 @@ import org.eclipse.jface.viewers.TreePath;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class VMHasChildrenUpdate extends VMViewerUpdate implements IHasChildrenUpdate {
final private DataRequestMonitor<Boolean> fHasElemsRequestMonitor;

View file

@ -37,7 +37,6 @@ import org.eclipse.jface.viewers.TreePath;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class VMViewerUpdate implements IViewerUpdate {
/**

View file

@ -48,7 +48,6 @@ import org.eclipse.jface.viewers.TreePath;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
abstract public class AbstractDMVMNode extends AbstractVMNode implements IVMNode {
/**

View file

@ -25,7 +25,6 @@ import org.eclipse.jface.viewers.TreePath;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class CompositeDMVMContext extends CompositeDMContext {
/**

View file

@ -20,7 +20,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public interface IPropertiesUpdate extends IViewerUpdate {
/**
* Returns the set of element properties that the provider should update.

View file

@ -33,7 +33,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.ILabelUpdate;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
abstract public class LabelAttribute {
public static final String[] EMPTY_PROPERTY_NAMES_ARRAY = new String[0];

View file

@ -27,7 +27,6 @@ import org.eclipse.swt.graphics.RGB;
* @since 1.0
*/
@SuppressWarnings("restriction")
public class LabelColor extends LabelAttribute {
private RGB fForeground;
private RGB fBackground;

View file

@ -16,7 +16,6 @@ import java.util.Map;
import org.eclipse.cdt.dsf.concurrent.ThreadSafe;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.ListenerList;
import org.eclipse.debug.internal.ui.viewers.model.provisional.ILabelUpdate;
/**
@ -34,19 +33,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.ILabelUpdate;
*/
@ThreadSafe
public class LabelColumnInfo {
/**
* @since 2.0
*/
private static final LabelAttribute[] DEFAULT_FAILED_UPDATE_ATTRIBUTES = new LabelAttribute[] {
new LabelText("...", new String[0])
};
/**
* @since 2.0
*/
private static final LabelAttribute[] EMPTY_ATTRIBUTES = new LabelAttribute[0];
/**
* Calculated list of property names that need to be retrieved to
* generate the label for this column.
@ -58,11 +44,6 @@ public class LabelColumnInfo {
*/
private LabelAttribute[] fLabelAttributes;
/**
* Listeners for when column attributes are modified.
*/
private ListenerList fListeners = new ListenerList();
/**
* Creates the column info object with given array of attributes.
* @param attributeInfos Attributes for the label.

View file

@ -26,7 +26,6 @@ import org.eclipse.swt.graphics.FontData;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class LabelFont extends LabelAttribute {
private static final FontData DEFAULT_FONT = JFaceResources.getDefaultFontDescriptor().getFontData()[0];

View file

@ -25,7 +25,6 @@ import org.eclipse.jface.resource.ImageDescriptor;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class LabelImage extends LabelAttribute {
private ImageDescriptor fImageDescriptor;

View file

@ -30,7 +30,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.ILabelUpdate;
*
* @since 1.0
*/
@SuppressWarnings("restriction")
public class LabelText extends LabelAttribute {
public static final MessageFormat DEFAULT_MESSAGE = new MessageFormat(MessagesForProperties.DefaultLabelMessage_label);

View file

@ -38,7 +38,6 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.ILabelUpdate;
*
* @since 2.0 - Renamed from PropertyBasedLabelProvider
*/
@SuppressWarnings("restriction")
@ThreadSafe
public class PropertiesBasedLabelProvider
implements IElementLabelProvider

View file

@ -41,7 +41,6 @@ import org.eclipse.swt.graphics.RGB;
/**
* @since 1.1
*/
@SuppressWarnings("restriction")
class MultiLevelUpdateHandler extends DataRequestMonitor<List<Object>> {
private static final boolean DEBUG = Boolean.parseBoolean(Platform.getDebugOption("org.eclipse.cdt.dsf.ui/debug/vm/atomicUpdate")); //$NON-NLS-1$ //;