Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2007-05-18 18:54:20 -0400
committeratikhomirov2007-05-18 18:54:20 -0400
commitd40e77430ddbf1f6855ae52a6e3416745b3594d0 (patch)
tree5dc087746a03fbe96e441e0b828a409f0732a2fe
parente4b9a5cb454f225401b048af3dfe9196269bfa96 (diff)
downloadorg.eclipse.gmf-tooling-d40e77430ddbf1f6855ae52a6e3416745b3594d0.tar.gz
org.eclipse.gmf-tooling-d40e77430ddbf1f6855ae52a6e3416745b3594d0.tar.xz
org.eclipse.gmf-tooling-d40e77430ddbf1f6855ae52a6e3416745b3594d0.zip
minor beautify
-rw-r--r--plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/DiagnosticsDialog.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/DiagnosticsDialog.java b/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/DiagnosticsDialog.java
index 163adddc5..cc5eb3f2e 100644
--- a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/DiagnosticsDialog.java
+++ b/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/DiagnosticsDialog.java
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2006 Eclipse.org
+/*
+ * Copyright (c) 2006 Borland Software Corp
*
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the Eclipse Public License v1.0 which
@@ -14,7 +14,6 @@ import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.List;
import org.eclipse.core.resources.IFile;
@@ -434,8 +433,6 @@ public class DiagnosticsDialog extends IconAndMessageDialog {
protected Control createButtonBar(Composite parent) {
Control buttonBar = super.createButtonBar(parent);
Button proceedButton = getButton(IDialogConstants.PROCEED_ID);
- assert proceedButton != null;
-
if(proceedButton != null) {
proceedButton.setEnabled(!disableProceed);
}
@@ -743,10 +740,9 @@ public class DiagnosticsDialog extends IconAndMessageDialog {
data = new Object[] { status.getException() };
}
- List<Diagnostic> children = Collections.emptyList();
if(status.isMultiStatus()) {
IStatus[] nestedStatuses = status.getChildren();
- children = new ArrayList<Diagnostic>(nestedStatuses.length);
+ List<Diagnostic> children = new ArrayList<Diagnostic>(nestedStatuses.length);
for (int i = 0; i < nestedStatuses.length; i++) {
children.add(toDiagnostic(nestedStatuses[i]));
}

Back to the top