Permalink
Browse files

Removed some old EMF stuff.

  • Loading branch information...
Albert Zuendorf
Albert Zuendorf committed May 29, 2016
1 parent 7208028 commit d74f95f073accaea4974d1a7418d93be7ad8751c
View
@@ -5,7 +5,7 @@
<classpathentry kind="src" path="src/main/replication"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/NetworkParser"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@@ -167,31 +167,6 @@ private void generateToManyRole(Parser myParser, Clazz clazz, Association partne
elistPos = type.indexOf(":EList<");
}
if (elistPos >= 0)
{
pos = myParser.indexOf(Parser.METHOD + ":get" + partnerRoleUpFirstChar + "Set()");
if (pos < 0)
{
if (GraphUtil.isInterface(clazz) == false)
{
text.append
( " public type getPartnerRoleNameSet()\n" +
" {\n" +
" return new type().with(getPartnerRoleName());\n" +
" }\n" +
"\n");
}
else
{
text.append
( "\n public type getPartnerRoleNameSet();" +
"\n");
}
}
}
if (model.getClazz() == model.getOtherClazz())
{
// recursive assoc, add getTransitive methods
@@ -270,11 +245,6 @@ private void generateToManyRole(Parser myParser, Clazz clazz, Association partne
( "\n public myClassName withPartnerRoleName(partnerClassName... value);" +
"\n");
}
if (elistPos >= 0)
{
CGUtil.replaceAll(text, "initRoleVar", "this.getPartnerRoleName()");
}
}
@@ -1030,7 +1000,8 @@ private void insertGetInPatternObjectFile(Clazz clazz, Parser parser, Associatio
+ " if (this.getPattern().getHasMatch())\n"
+ " {\n"
+ " return ((ModelClass) this.getCurrentMatch()).getRoleName();\n"
+ " }\n" + " return null;\n" + " }\n\n");
+ " }\n"
+ " return null;\n" + " }\n\n");
}
else
{
@@ -1040,7 +1011,8 @@ private void insertGetInPatternObjectFile(Clazz clazz, Parser parser, Associatio
+ " if (this.getPattern().getHasMatch())\n"
+ " {\n"
+ " return ((ModelClass) this.getCurrentMatch()).getRoleNameSet();\n"
+ " }\n" + " return null;\n" + " }\n\n");
+ " }\n"
+ " return null;\n" + " }\n\n");
}
@@ -35,27 +35,40 @@ and associated documentation files (the "Software"), to deal in the Software wit
//==========================================================================
protected PropertyChangeSupport listeners = new PropertyChangeSupport(this);
protected PropertyChangeSupport listeners = null;
public PropertyChangeSupport getPropertyChangeSupport()
public boolean firePropertyChange(String propertyName, Object oldValue, Object newValue)
{
return listeners;
if (listeners != null) {
listeners.firePropertyChange(propertyName, oldValue, newValue);
return true;
}
return false;
}
public boolean addPropertyChangeListener(PropertyChangeListener listener)
{
getPropertyChangeSupport().addPropertyChangeListener(listener);
return true;
if (listeners == null) {
listeners = new PropertyChangeSupport(this);
}
listeners.addPropertyChangeListener(listener);
return true;
}
public boolean addPropertyChangeListener(String propertyName, PropertyChangeListener listener) {
getPropertyChangeSupport().addPropertyChangeListener(propertyName, listener);
return true;
if (listeners == null) {
listeners = new PropertyChangeSupport(this);
}
listeners.addPropertyChangeListener(propertyName, listener);
return true;
}
public boolean removePropertyChangeListener(PropertyChangeListener listener) {
getPropertyChangeSupport().removePropertyChangeListener(listener);
return true;
if (listeners == null) {
listeners = new PropertyChangeSupport(this);
}
listeners.removePropertyChangeListener(listener);
return true;
}
@@ -64,8 +77,7 @@ public boolean removePropertyChangeListener(PropertyChangeListener listener) {
public void removeYou()
{
getPropertyChangeSupport().firePropertyChange("REMOVE_YOU", this, null);
firePropertyChange("REMOVE_YOU", this, null);
}
@@ -86,7 +98,7 @@ public void setName(String value)
String oldValue = this.name;
this.name = value;
getPropertyChangeSupport().firePropertyChange(PROPERTY_NAME, oldValue, value);
this.firePropertyChange(PROPERTY_NAME, oldValue, value);
}
}
@@ -126,7 +138,7 @@ public void setAge(int value)
int oldValue = this.age;
this.age = value;
getPropertyChangeSupport().firePropertyChange(PROPERTY_AGE, oldValue, value);
this.firePropertyChange(PROPERTY_AGE, oldValue, value);
}
}
@@ -31,12 +31,12 @@ and associated documentation files (the "Software"), to deal in the Software wit
import org.sdmlib.test.examples.studyrightWithAssignments.model.TeachingAssistant;
import org.sdmlib.test.examples.studyrightWithAssignments.model.util.AssignmentSet;
import org.sdmlib.test.examples.studyrightWithAssignments.model.Assignment;
/**
*
* @see <a href='../../../../../../../../../src/test/java/org/sdmlib/test/examples/studyrightWithAssignments/GenerateClasses.java'>GenerateClasses.java</a>
/**
*
* @see <a href='../../../../../../../../../src/test/java/org/sdmlib/test/examples/studyrightWithAssignments/GenerateClasses.java'>GenerateClasses.java</a>
* @see <a href='../../../../../../../../../src/test/java/org/sdmlib/test/examples/studyrightWithAssignments/StudyRightWithAssignmentsModel.java'>StudyRightWithAssignmentsModel.java</a>
*/
public class Student implements SendableEntity
public class Student implements SendableEntity
{

0 comments on commit d74f95f

Please sign in to comment.