1
0
Fork 0
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:
Pawel Piech 2008-05-14 05:07:09 +00:00
parent b9fa4f4ff2
commit b634edc1e1
7 changed files with 41 additions and 4 deletions

View file

@ -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 {
/**

View file

@ -121,6 +121,7 @@ public class VMDelta extends ModelDelta {
fFlags = flags;
}
@Override
public void setChildCount(int count) {
fChildCount = count;
}

View file

@ -36,7 +36,7 @@ public class AutomaticUpdatePolicy implements IVMUpdatePolicy {
}
public String getName() {
return "Automatic";
return ViewModelUpdateMessages.AutomaticUpdatePolicy_name;
}
public IElementUpdateTester getElementUpdateTester(Object event) {

View file

@ -76,7 +76,7 @@ public class ManualUpdatePolicy implements IVMUpdatePolicy {
}
public String getName() {
return "Manual";
return ViewModelUpdateMessages.ManualUpdatePolicy_name;
}
public IElementUpdateTester getElementUpdateTester(Object event) {

View file

@ -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);
}
}

View file

@ -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

View file

@ -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