[Jiemamy-notify:1895] commit [3065] refactor

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 4月 3日 (金) 01:38:57 JST


Revision: 3065
          http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=3065
Author:   daisuke_m
Date:     2009-04-03 01:38:57 +0900 (Fri, 03 Apr 2009)

Log Message:
-----------
refactor

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-04-02 16:15:52 UTC (rev 3064)
+++ hestia/trunk/org.jiemamy.eclipse.ui/src/main/java/org/jiemamy/eclipse/action/AutoLayoutAction.java	2009-04-02 16:38:57 UTC (rev 3065)
@@ -38,6 +38,7 @@
 
 import org.jiemamy.Migration;
 import org.jiemamy.eclipse.editor.editpart.diagram.AbstractJmNodeEditPart;
+import org.jiemamy.eclipse.editor.editpart.diagram.RootEditPart;
 import org.jiemamy.model.ConnectionProfile;
 import org.jiemamy.model.DiagramPresentationModel;
 import org.jiemamy.model.DiagramPresentations;
@@ -76,12 +77,13 @@
 	
 	@Override
 	public void run() {
-		RootModel rootModel = (RootModel) getViewer().getContents().getModel();
+		RootEditPart rootEditPart = (RootEditPart) getViewer().getContents();
+		RootModel rootModel = rootEditPart.getModel();
 		CompoundCommand commands = new CompoundCommand();
 		
 		@SuppressWarnings("unchecked")
 		// TODO キャスト安全性の根拠提示
-		List<EditPart> editParts = getViewer().getContents().getChildren();
+		List<EditPart> editParts = rootEditPart.getChildren();
 		
 		@SuppressWarnings("unchecked")
 		// TODO キャスト安全性の根拠提示
@@ -189,7 +191,7 @@
 		/**
 		 * インスタンスを生成する。
 		 * 
-		 * @param rootModel 
+		 * @param rootModel ルートモデル
 		 * @param diagramIndex ダイアグラムエディタのインデックス(エディタ内のタブインデックス)
 		 * @param target 
 		 * @param x X座標



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