Java Code Examples for org.eclipse.emf.common.notify.Notification#getNewValue()

The following examples show how to use org.eclipse.emf.common.notify.Notification#getNewValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RouterPropertiesEditionComponent.java    From eip-designer with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		RouterPropertiesEditionPart basePart = (RouterPropertiesEditionPart)editingPart;
		if (EipPackage.eINSTANCE.getEndpoint_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(EipViewsRepository.Router.Properties.name)) {
			if (msg.getNewValue() != null) {
				basePart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				basePart.setName("");
			}
		}
		if (EipPackage.eINSTANCE.getEndpoint_ToChannels().equals(msg.getFeature())  && isAccessible(EipViewsRepository.Router.Properties.toChannels))
			basePart.updateToChannels();
		if (EipPackage.eINSTANCE.getEndpoint_FromChannels().equals(msg.getFeature())  && isAccessible(EipViewsRepository.Router.Properties.fromChannels))
			basePart.updateFromChannels();
		if (EipPackage.eINSTANCE.getRouter_OwnedRoutes().equals(msg.getFeature()) && isAccessible(EipViewsRepository.Router.Properties.ownedRoutes))
			basePart.updateOwnedRoutes();
		if (EipPackage.eINSTANCE.getRouter_Type().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && isAccessible(EipViewsRepository.Router.Properties.type))
			basePart.setType((RoutingType)msg.getNewValue());
		
		
	}
}
 
Example 2
Source File: EnricherPropertiesEditionComponent.java    From eip-designer with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		EnricherPropertiesEditionPart basePart = (EnricherPropertiesEditionPart)editingPart;
		if (EipPackage.eINSTANCE.getEndpoint_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(EipViewsRepository.Enricher.Properties.name)) {
			if (msg.getNewValue() != null) {
				basePart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				basePart.setName("");
			}
		}
		if (EipPackage.eINSTANCE.getEndpoint_ToChannels().equals(msg.getFeature())  && isAccessible(EipViewsRepository.Enricher.Properties.toChannels))
			basePart.updateToChannels();
		if (EipPackage.eINSTANCE.getEndpoint_FromChannels().equals(msg.getFeature())  && isAccessible(EipViewsRepository.Enricher.Properties.fromChannels))
			basePart.updateFromChannels();
		if (EipPackage.eINSTANCE.getInvocableEndpoint_OwnedServiceInvocations().equals(msg.getFeature()) && isAccessible(EipViewsRepository.Enricher.Properties.ownedServiceInvocations))
			basePart.updateOwnedServiceInvocations();
		if (EipPackage.eINSTANCE.getEnricher_Part().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && isAccessible(EipViewsRepository.Enricher.Properties.part))
			basePart.setPart((MessagePart)msg.getNewValue());
		
		
	}
}
 
Example 3
Source File: StartSignalEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 4
Source File: CsvSourceNameEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	super.handleNotificationEvent(event);
}
 
Example 5
Source File: OpinionatedTaskNameEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	super.handleNotificationEvent(event);
}
 
Example 6
Source File: IntermediateThrowMessageEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 7
Source File: ReceiveTaskLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	super.handleNotificationEvent(event);
}
 
Example 8
Source File: EndMessageEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 9
Source File: SourceNameEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	super.handleNotificationEvent(event);
}
 
Example 10
Source File: EndErrorEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 11
Source File: StartSignalEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 12
Source File: EndTerminatedEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 13
Source File: BoundaryMessageEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 14
Source File: CsvSinkNameEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	super.handleNotificationEvent(event);
}
 
Example 15
Source File: IntermediateErrorCatchEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 16
Source File: ANDGatewayLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 17
Source File: IntermediateCatchMessageEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 18
Source File: BoundarySignalEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 19
Source File: BoundaryTimerEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 20
Source File: WrappingLabel2EditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	super.handleNotificationEvent(event);
}