cdt/cdt_6_0_x/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java
changeset 60 3982fab6369e
parent 52 42077b7eab6e
--- a/cdt/cdt_6_0_x/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java	Fri Aug 07 12:47:00 2009 -0500
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesViewer.java	Fri Aug 07 13:47:27 2009 -0500
@@ -11,6 +11,7 @@
 package org.eclipse.cdt.debug.internal.ui.views.executables;
 
 import java.util.List;
+
 import org.eclipse.cdt.debug.core.executables.Executable;
 import org.eclipse.cdt.debug.core.executables.ExecutablesManager;
 import org.eclipse.cdt.debug.core.executables.IExecutablesChangeListener;
@@ -166,7 +167,6 @@
 		return new ExecutablesViewerComparator(sortType, column_sort_order[sortType]);
 	}
 
-	
 	@Override
 	protected String getColumnOrderKey() {
 		return P_COLUMN_ORDER_KEY_EXE;
@@ -192,21 +192,20 @@
 		// default visible columns
 		return "1,1,1,0,0,0"; //$NON-NLS-1$
 	}
-	
+
 	public void executablesChanged(final List<Executable> executables) {
-		// some executables have been updated. if one of them is currently
+		// some executables have been updated.  if one of them is currently
 		// selected, we need to update the source file list
-		UIJob refreshJob = new UIJob(
-				Messages.ExecutablesViewer_RefreshExecutablesView) {
+		UIJob refreshJob = new UIJob(Messages.ExecutablesViewer_RefreshExecutablesView) {
 
 			@Override
 			public IStatus runInUIThread(IProgressMonitor monitor) {
 				// if the user has selected an executable, they expect its
 				// list of source files to be refreshed automatically
-				if (getSelection() != null
-						&& getSelection() instanceof IStructuredSelection) {
-					IStructuredSelection selection = (IStructuredSelection) getSelection();
-
+				if (getSelection() != null &&
+					getSelection() instanceof IStructuredSelection) {
+					IStructuredSelection selection = (IStructuredSelection)getSelection();
+					
 					Object firstElement = selection.getFirstElement();
 					if (firstElement instanceof Executable) {
 						Executable executable = (Executable) firstElement;
@@ -224,8 +223,7 @@
 
 	public void executablesListChanged() {
 		// Executables list has changed so refresh the view.
-		UIJob refreshJob = new UIJob(
-				Messages.ExecutablesViewer_RefreshExecutablesView) {
+		UIJob refreshJob = new UIJob(Messages.ExecutablesViewer_RefreshExecutablesView) {
 
 			@Override
 			public IStatus runInUIThread(IProgressMonitor monitor) {
@@ -236,4 +234,4 @@
 		};
 		refreshJob.schedule();
 	}
-}
\ No newline at end of file
+}