• R/O
  • HTTP
  • SSH
  • HTTPS

tmdmaker: Commit

TMD-Maker(T字形ER図作成ツール)のEclipse Plugin,RCP,Webサイト用


Commit MetaInfo

Revision253b9b400365823f52dfa244570d00a9ea5d3623 (tree)
Time2014-12-23 10:50:51
Authortohosaku <ny@cosm...>
Commitertohosaku

Log Message

ライセンス、author の追加。

Change Summary

Incremental Difference

--- a/tmdmaker.core/src/jp/sourceforge/tmdmaker/model/IAcceptor.java
+++ b/tmdmaker.core/src/jp/sourceforge/tmdmaker/model/IAcceptor.java
@@ -1,5 +1,26 @@
1+/*
2+ * Copyright 2009-2014 TMD-Maker Project <http://tmdmaker.sourceforge.jp/>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116 package jp.sourceforge.tmdmaker.model;
217
18+/**
19+ * Visitorパターンの訪問を受ける側
20+ *
21+ * @author tohosaku
22+ *
23+ */
324 public interface IAcceptor {
425 void accept(IVisitor visitor);
526 }
--- a/tmdmaker.core/src/jp/sourceforge/tmdmaker/model/IVisitor.java
+++ b/tmdmaker.core/src/jp/sourceforge/tmdmaker/model/IVisitor.java
@@ -1,5 +1,26 @@
1+/*
2+ * Copyright 2009-2014 TMD-Maker Project <http://tmdmaker.sourceforge.jp/>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116 package jp.sourceforge.tmdmaker.model;
217
18+/**
19+ * Visitorパターンの訪問者側
20+ *
21+ * @author tohosaku
22+ *
23+ */
324 public interface IVisitor {
425 void visit(ModelElement model);
526 void visit(AbstractRelationship relationship);
--- a/tmdmaker/src/jp/sourceforge/tmdmaker/dialog/ModelEditDialog.java
+++ b/tmdmaker/src/jp/sourceforge/tmdmaker/dialog/ModelEditDialog.java
@@ -1,3 +1,18 @@
1+/*
2+ * Copyright 2009-2014 TMD-Maker Project <http://tmdmaker.sourceforge.jp/>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116 package jp.sourceforge.tmdmaker.dialog;
217
318 import java.beans.PropertyChangeEvent;
@@ -14,6 +29,12 @@ import org.eclipse.swt.widgets.Composite;
1429 import org.eclipse.swt.widgets.Control;
1530 import org.eclipse.swt.widgets.Shell;
1631
32+/**
33+ * モデル編集ダイアログの基底クラス
34+ *
35+ * @author tohosaku
36+ *
37+ */
1738 public abstract class ModelEditDialog<T extends AbstractEntityModel> extends Dialog implements PropertyChangeListener {
1839
1940 public ModelEditDialog(Shell parentShell) {
--- a/tmdmaker/src/jp/sourceforge/tmdmaker/editpart/AbstractEntityModelEditPart.java
+++ b/tmdmaker/src/jp/sourceforge/tmdmaker/editpart/AbstractEntityModelEditPart.java
@@ -1,3 +1,19 @@
1+/*
2+ * Copyright 2009-2014 TMD-Maker Project <http://tmdmaker.sourceforge.jp/>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
117 package jp.sourceforge.tmdmaker.editpart;
218
319 import java.util.ArrayList;
@@ -28,6 +44,12 @@ import org.eclipse.swt.graphics.Color;
2844 import org.eclipse.swt.widgets.Shell;
2945 import org.eclipse.ui.views.properties.IPropertySource;
3046
47+/**
48+ * Entity系のeditpartの基底クラス
49+ *
50+ * @author tohosaku
51+ *
52+ */
3153 public abstract class AbstractEntityModelEditPart<T extends AbstractEntityModel> extends AbstractModelEditPart<T> implements IPropertyAvailable {
3254
3355 @Override
--- a/tmdmaker/src/jp/sourceforge/tmdmaker/editpart/TMDEditPartVisitor.java
+++ b/tmdmaker/src/jp/sourceforge/tmdmaker/editpart/TMDEditPartVisitor.java
@@ -1,5 +1,5 @@
11 /*
2- * Copyright 2009-2011 TMD-Maker Project <http://tmdmaker.sourceforge.jp/>
2+ * Copyright 2009-2014 TMD-Maker Project <http://tmdmaker.sourceforge.jp/>
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
--- a/tmdmaker/src/jp/sourceforge/tmdmaker/property/IPropertyAvailable.java
+++ b/tmdmaker/src/jp/sourceforge/tmdmaker/property/IPropertyAvailable.java
@@ -1,8 +1,29 @@
1+/*
2+ * Copyright 2009-2014 TMD-Maker Project <http://tmdmaker.sourceforge.jp/>
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116 package jp.sourceforge.tmdmaker.property;
217
318 import org.eclipse.ui.views.properties.IPropertySource;
419 import jp.sourceforge.tmdmaker.TMDEditor;
520
21+/**
22+ * PropertySource を返す editpart は、このinterface を実装すること。
23+ *
24+ * @author tohosaku
25+ *
26+ */
627 public interface IPropertyAvailable {
728 IPropertySource getPropertySource(TMDEditor editor);
829 }
--- a/tmdmaker/src/jp/sourceforge/tmdmaker/treeeditpart/TMDOutlineTreeEditPartVisitor.java
+++ b/tmdmaker/src/jp/sourceforge/tmdmaker/treeeditpart/TMDOutlineTreeEditPartVisitor.java
@@ -45,6 +45,14 @@ import jp.sourceforge.tmdmaker.model.VirtualEntity;
4545 import jp.sourceforge.tmdmaker.model.VirtualSuperset;
4646 import jp.sourceforge.tmdmaker.model.VirtualSupersetType;
4747
48+/**
49+ *
50+ * Visitor パターンの実装。IAcceptorを実装した各モデルに対し、visitメソッドで定義した処理を実行する。
51+ * ここでは、各モデルに対応したtreeview用のEditPartを生成する。
52+ *
53+ * @author tohosaku
54+ *
55+ */
4856 public class TMDOutlineTreeEditPartVisitor implements IVisitor{
4957
5058 EditPart part = null;
Show on old repository browser