[Jiemamy-notify:2411] commit [3411] [ECL-54] RESOURCEを追加した。メソッドのソートも行ってなかったようなのでその分も修正した。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 5月 20日 (水) 18:30:59 JST


Revision: 3411
          http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=3411
Author:   shin1
Date:     2009-05-20 18:30:59 +0900 (Wed, 20 May 2009)

Log Message:
-----------
[ECL-54]RESOURCEを追加した。メソッドのソートも行ってなかったようなのでその分も修正した。

Modified Paths:
--------------
    hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/action/AutoLayoutAction.java


-------------- next part --------------
Modified: hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/action/AutoLayoutAction.java
===================================================================
--- hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/action/AutoLayoutAction.java	2009-05-20 09:25:01 UTC (rev 3410)
+++ hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/action/AutoLayoutAction.java	2009-05-20 09:30:59 UTC (rev 3411)
@@ -229,40 +229,29 @@
 			RootModel rootModel = ((RootEditPart) viewer.getContents()).getModel();
 			
 			// assemble nodes
-			monitor.setTaskName(Messages.AutoLayoutAction_name + " - assemble nodes.");
+			monitor.setTaskName(Messages.AutoLayoutAction_name + " - assemble nodes."); // RESOURCE
 			assembleNodes(editParts, graphNodes);
 			monitor.worked(++worked);
 			
 			// assemble edges
-			monitor.setTaskName(Messages.AutoLayoutAction_name + " - assemble edges.");
+			monitor.setTaskName(Messages.AutoLayoutAction_name + " - assemble edges."); // RESOURCE
 			assembleEdges(graphNodes, graphEdges);
 			monitor.worked(++worked);
 			
 			// amnalyze graph
-			monitor.setTaskName(Messages.AutoLayoutAction_name + " - analyze graph.");
+			monitor.setTaskName(Messages.AutoLayoutAction_name + " - analyze graph."); // RESOURCE
 			analyzeGraph(graphNodes, graphEdges, commands, rootModel);
 			monitor.worked(++worked);
 			
-			monitor.setTaskName(Messages.AutoLayoutAction_name + " - execute command stack.");
+			monitor.setTaskName(Messages.AutoLayoutAction_name + " - execute command stack."); // RESOURCE
 			viewer.getEditDomain().getCommandStack().execute(commands);
 			monitor.worked(++worked);
 			
-			monitor.setTaskName(Messages.AutoLayoutAction_name + " - refresh views.");
+			monitor.setTaskName(Messages.AutoLayoutAction_name + " - refresh views."); // RESOURCE
 			refreshViews(editParts);
 			monitor.worked(++worked);
 			monitor.done();
 		}
-
-		private void refreshViews(final List<EditPart> editParts) {
-			viewer.getControl().getDisplay().syncExec(new Runnable() {
-				
-				public void run() {
-					for (EditPart editPart : editParts) {
-						editPart.refresh();
-					}
-				}
-			});
-		}
 		
 		private void analyzeGraph(final List<Node> graphNodes, final List<Edge> graphEdges, CompoundCommand commands,
 				RootModel rootModel) {
@@ -315,5 +304,16 @@
 				}
 			}
 		}
+		
+		private void refreshViews(final List<EditPart> editParts) {
+			viewer.getControl().getDisplay().syncExec(new Runnable() {
+				
+				public void run() {
+					for (EditPart editPart : editParts) {
+						editPart.refresh();
+					}
+				}
+			});
+		}
 	}
 }



Jiemamy-notify メーリングリストの案内
Back to archive index