Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
  • Loading branch information
Marc Khouzam committed Apr 20, 2015
1 parent f6cc476 commit 2c56fe5
Showing 1 changed file with 7 additions and 7 deletions.
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2005, 2011 IBM Corporation and others.
* Copyright (c) 2005, 2015 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
Expand Down Expand Up @@ -732,15 +732,15 @@ protected void handleSuccess() {
// if the list of VMNodes. If we decide to make the patch more generic ( allow recursive
// node to be at different index) we need to remove this simplification.
//
if( isDeltaElementOfType(delta, childNode)) {
if (isDeltaElementOfType(delta, childNode)) {
childNode.buildDelta(
event, delta, 0,
new RequestMonitor(getVMProvider().getExecutor(), multiRm) {
@Override
protected void handleSuccess() {
buildChildDeltas(
childNode, event, delta, 0,
new RequestMonitor(getVMProvider().getExecutor(), multiRm) );
new RequestMonitor(getVMProvider().getExecutor(), multiRm));
}
});
multiRmCount++;
Expand All @@ -757,7 +757,7 @@ protected void handleSuccess() {
protected void handleSuccess() {
buildChildDeltas(
childNode, event, delta, nodeOffset,
new RequestMonitor(getVMProvider().getExecutor(), multiRm) );
new RequestMonitor(getVMProvider().getExecutor(), multiRm));
}
});
multiRmCount++;
Expand Down Expand Up @@ -889,7 +889,7 @@ public boolean allowRecursiveVMNodes() {
*
* @param allow - whether to allow or not recursive containment of VMNodes.
*/
public void setAllowRecursiveVMNodes( boolean allow) {
public void setAllowRecursiveVMNodes(boolean allow) {
fAllowRecursiveVMNodes = allow;
}

Expand All @@ -900,8 +900,8 @@ public void setAllowRecursiveVMNodes( boolean allow) {
* @param node - the IVMNode we want to compare to.
* @return if the VMNode of element of the provided delta is the same as the provided IVMNode.
*/
protected boolean isDeltaElementOfType( VMDelta delta, IVMNode node) {
if( delta.getElement() instanceof IDMVMContext) {
protected boolean isDeltaElementOfType(VMDelta delta, IVMNode node) {
if (delta.getElement() instanceof IDMVMContext) {
IDMVMContext dmvmContext = (IDMVMContext)delta.getElement();
return dmvmContext.getVMNode().equals(node);
}
Expand Down

0 comments on commit 2c56fe5

Please sign in to comment.