use of com.cubrid.common.ui.er.model.PropertyChangeProvider in project cubrid-manager by CUBRID.
the class DataElementFactory method getNewObject.
public Object getNewObject() {
try {
Object obj = template.newInstance();
if (obj instanceof PropertyChangeProvider) {
PropertyChangeProvider model = (PropertyChangeProvider) obj;
model.setERSchema(erSchema);
}
return obj;
} catch (Exception e) {
return null;
}
}
use of com.cubrid.common.ui.er.model.PropertyChangeProvider in project cubrid-manager by CUBRID.
the class AbstractBasicPart method deactivate.
public void deactivate() {
super.deactivate();
PropertyChangeProvider propertyChangeProvider = (PropertyChangeProvider) getModel();
propertyChangeProvider.removePropertyChangeListener(this);
}
use of com.cubrid.common.ui.er.model.PropertyChangeProvider in project cubrid-manager by CUBRID.
the class NodeResizableEditPolicy method isDragAllowed.
/**
* Returns true if this EditPolicy allows its EditPart to be dragged.
*
* @return true if the EditPart can be dragged.
*/
@Override
public boolean isDragAllowed() {
EditPart part = this.getHost();
Object obj = part.getModel();
if (obj instanceof PropertyChangeProvider) {
PropertyChangeProvider model = (PropertyChangeProvider) obj;
return model.getERSchema().isLayoutManualDesired();
}
return super.isDragAllowed();
}
use of com.cubrid.common.ui.er.model.PropertyChangeProvider in project cubrid-manager by CUBRID.
the class AbstractRelationshipPart method activate.
public void activate() {
super.activate();
PropertyChangeProvider propertyChangeProvider = (PropertyChangeProvider) getModel();
propertyChangeProvider.addPropertyChangeListener(this);
}
use of com.cubrid.common.ui.er.model.PropertyChangeProvider in project cubrid-manager by CUBRID.
the class AbstractRelationshipPart method deactivate.
public void deactivate() {
super.deactivate();
PropertyChangeProvider propertyChangeProvider = (PropertyChangeProvider) getModel();
propertyChangeProvider.removePropertyChangeListener(this);
}
Aggregations