mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
[197844] Cleaned up warnings.
This commit is contained in:
parent
b9fa4f4ff2
commit
b634edc1e1
7 changed files with 41 additions and 4 deletions
|
@ -22,7 +22,6 @@ import org.eclipse.jface.viewers.TreePath;
|
|||
* to use this node to delegate expression parsing to this node, and to
|
||||
* generate deltas for expressions that are owned by this node.
|
||||
*/
|
||||
@SuppressWarnings("restriction")
|
||||
public interface IExpressionVMNode extends IVMNode {
|
||||
|
||||
/**
|
||||
|
|
|
@ -121,6 +121,7 @@ public class VMDelta extends ModelDelta {
|
|||
fFlags = flags;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setChildCount(int count) {
|
||||
fChildCount = count;
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ public class AutomaticUpdatePolicy implements IVMUpdatePolicy {
|
|||
}
|
||||
|
||||
public String getName() {
|
||||
return "Automatic";
|
||||
return ViewModelUpdateMessages.AutomaticUpdatePolicy_name;
|
||||
}
|
||||
|
||||
public IElementUpdateTester getElementUpdateTester(Object event) {
|
||||
|
|
|
@ -76,7 +76,7 @@ public class ManualUpdatePolicy implements IVMUpdatePolicy {
|
|||
}
|
||||
|
||||
public String getName() {
|
||||
return "Manual";
|
||||
return ViewModelUpdateMessages.ManualUpdatePolicy_name;
|
||||
}
|
||||
|
||||
public IElementUpdateTester getElementUpdateTester(Object event) {
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2008 Wind River Systems 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:
|
||||
* Wind River Systems - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.dd.dsf.ui.viewmodel.update;
|
||||
|
||||
import org.eclipse.osgi.util.NLS;
|
||||
|
||||
public class ViewModelUpdateMessages extends NLS {
|
||||
|
||||
private static final String BUNDLE_NAME = "org.eclipse.dd.dsf.ui.viewmodel.update.ViewModelUpdateMessages";//$NON-NLS-1$
|
||||
|
||||
public static String AutomaticUpdatePolicy_name;
|
||||
public static String ManualUpdatePolicy_name;
|
||||
|
||||
static {
|
||||
// load message values from bundle file
|
||||
NLS.initializeMessages(BUNDLE_NAME, ViewModelUpdateMessages.class);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
###############################################################################
|
||||
# Copyright (c) 2008 Wind River Systems 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:
|
||||
# Wind River Systems - initial API and implementation
|
||||
###############################################################################
|
||||
AutomaticUpdatePolicy_name = Automatic
|
||||
ManualUpdatePolicy_name = Manual
|
|
@ -352,7 +352,6 @@ public class MIMemory extends AbstractDsfService implements IMemory {
|
|||
// Insert the block in the sorted linked list and merge contiguous
|
||||
// blocks if necessary
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public boolean add(MemoryBlock block) {
|
||||
|
||||
// If the list is empty, just store the block
|
||||
|
|
Loading…
Add table
Reference in a new issue