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

The following are Jave code examples for showing how to use getFeatureID() of the org.eclipse.emf.common.notify.Notification class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: neoscada   File: CommonDeploymentMechanismItemProvider.java   View Source Code Vote up 6 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( CommonDeploymentMechanism.class ) )
    {
        case DeploymentPackage.COMMON_DEPLOYMENT_MECHANISM__ADDITIONAL_DEPENDENCIES:
        case DeploymentPackage.COMMON_DEPLOYMENT_MECHANISM__STARTUP_MECHANISM:
        case DeploymentPackage.COMMON_DEPLOYMENT_MECHANISM__MULTI_USER_SCREEN:
        case DeploymentPackage.COMMON_DEPLOYMENT_MECHANISM__AUTOMATIC_CREATE:
        case DeploymentPackage.COMMON_DEPLOYMENT_MECHANISM__RECREATE_BACKUPS:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
        case DeploymentPackage.COMMON_DEPLOYMENT_MECHANISM__CHANGES:
        case DeploymentPackage.COMMON_DEPLOYMENT_MECHANISM__ADDITIONAL_SETUP_MODULES:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), true, false ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 2
Project: neoscada   File: EquinoxApplicationItemProvider.java   View Source Code Vote up 6 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( EquinoxApplication.class ) )
    {
        case InfrastructurePackage.EQUINOX_APPLICATION__NAME:
        case InfrastructurePackage.EQUINOX_APPLICATION__INSTANCE_NUMBER:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
        case InfrastructurePackage.EQUINOX_APPLICATION__USER_SERVICE:
        case InfrastructurePackage.EQUINOX_APPLICATION__MODULES:
        case InfrastructurePackage.EQUINOX_APPLICATION__CONFIGURATIONS:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), true, false ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 3
Project: neoscada   File: HandlerPriorityRuleItemProvider.java   View Source Code Vote up 6 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( HandlerPriorityRule.class ) )
    {
        case WorldPackage.HANDLER_PRIORITY_RULE__ORDER:
        case WorldPackage.HANDLER_PRIORITY_RULE__FACTORY_ID:
        case WorldPackage.HANDLER_PRIORITY_RULE__CONFIGURATION_FILTER:
        case WorldPackage.HANDLER_PRIORITY_RULE__PRIORITY:
        case WorldPackage.HANDLER_PRIORITY_RULE__DESCRIPTION:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 4
Project: neoscada   File: MarkerGroupItemProvider.java   View Source Code Vote up 6 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( MarkerGroup.class ) )
    {
        case OsgiPackage.MARKER_GROUP__NAME:
        case OsgiPackage.MARKER_GROUP__MARKERS:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
        case OsgiPackage.MARKER_GROUP__ITEMS:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), true, false ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 5
Project: neoscada   File: BoolLEDComponentItemProvider.java   View Source Code Vote up 6 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( BoolLEDComponent.class ) )
    {
        case DetailViewPackage.BOOL_LED_COMPONENT__FORMAT:
        case DetailViewPackage.BOOL_LED_COMPONENT__DESCRIPTOR:
        case DetailViewPackage.BOOL_LED_COMPONENT__ALARM:
        case DetailViewPackage.BOOL_LED_COMPONENT__ATTRIBUTE:
        case DetailViewPackage.BOOL_LED_COMPONENT__EXPECTED_VALUE:
        case DetailViewPackage.BOOL_LED_COMPONENT__ON_OFF:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 6
Project: neoscada   File: AbstractEventStorageJdbcItemProvider.java   View Source Code Vote up 6 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( AbstractEventStorageJdbc.class ) )
    {
        case OsgiPackage.ABSTRACT_EVENT_STORAGE_JDBC__SCHEMA:
        case OsgiPackage.ABSTRACT_EVENT_STORAGE_JDBC__INSTANCE_NAME:
        case OsgiPackage.ABSTRACT_EVENT_STORAGE_JDBC__ENABLE_REPLICATION:
        case OsgiPackage.ABSTRACT_EVENT_STORAGE_JDBC__ARCHIVE_DAYS:
        case OsgiPackage.ABSTRACT_EVENT_STORAGE_JDBC__CLEANUP_PERIOD_SECONDS:
        case OsgiPackage.ABSTRACT_EVENT_STORAGE_JDBC__REPLICATION_DATA_FORMAT:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 7
Project: neoscada   File: TimerActionItemProvider.java   View Source Code Vote up 6 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( TimerAction.class ) )
    {
        case CommonPackage.TIMER_ACTION__PERIOD:
        case CommonPackage.TIMER_ACTION__VALUE:
        case CommonPackage.TIMER_ACTION__NAME:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
        case CommonPackage.TIMER_ACTION__TARGET_ITEM:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), true, false ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 8
Project: neoscada   File: OptionsItemProvider.java   View Source Code Vote up 6 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( Options.class ) )
    {
        case InfrastructurePackage.OPTIONS__BASE_DA_NGP_PORT:
        case InfrastructurePackage.OPTIONS__BASE_AE_NGP_PORT:
        case InfrastructurePackage.OPTIONS__BASE_CA_NGP_PORT:
        case InfrastructurePackage.OPTIONS__BASE_HD_NGP_PORT:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
        case InfrastructurePackage.OPTIONS__MONITOR_POOLS:
        case InfrastructurePackage.OPTIONS__EVENT_POOLS:
        case InfrastructurePackage.OPTIONS__DEFAULT_USER_SERVICE:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), true, false ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 9
Project: time4sys   File: UsageTypedAmountItemProvider.java   View Source Code Vote up 6 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged(Notification notification) {
	updateChildren(notification);

	switch (notification.getFeatureID(UsageTypedAmount.class)) {
		case GrmPackage.USAGE_TYPED_AMOUNT__EXEC_TIME:
		case GrmPackage.USAGE_TYPED_AMOUNT__MSG_SIZE:
		case GrmPackage.USAGE_TYPED_AMOUNT__ALLOCATEDMEMORY:
		case GrmPackage.USAGE_TYPED_AMOUNT__USED_MEMORY:
		case GrmPackage.USAGE_TYPED_AMOUNT__POWER_PEAK:
		case GrmPackage.USAGE_TYPED_AMOUNT__ENERGY:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
			return;
	}
	super.notifyChanged(notification);
}
 
Example 10
Project: neoscada   File: MsiDeploymentMechanismItemProvider.java   View Source Code Vote up 6 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( MsiDeploymentMechanism.class ) )
    {
        case DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__VERSION:
        case DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__UPGRADE_CODE:
        case DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__MANUFACTURER:
        case DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__ARCHITECTURE:
        case DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__ENABLE_FIREWALL:
        case DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__ENABLE_USER_INTERFACE:
        case DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__LICENSE_FILE:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
        case DeploymentPackage.MSI_DEPLOYMENT_MECHANISM__LOCAL_PLATFORM:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), true, false ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 11
Project: TOSCA-Studio   File: Tosca_nodes_somenode2ItemProvider.java   View Source Code Vote up 5 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged(Notification notification) {
	updateChildren(notification);

	switch (notification.getFeatureID(Tosca_nodes_somenode2.class)) {
		case ExtendedtoscaPackage.TOSCA_NODES_SOMENODE2__DISK_SIZE:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
			return;
	}
	super.notifyChanged(notification);
}
 
Example 12
Project: neoscada   File: AuthorativeItemProvider.java   View Source Code Vote up 5 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( Authorative.class ) )
    {
        case GlobalizePackage.AUTHORATIVE__HIERARCHY:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 13
Project: neoscada   File: DataAccessExporterItemProvider.java   View Source Code Vote up 5 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( DataAccessExporter.class ) )
    {
        case OsgiPackage.DATA_ACCESS_EXPORTER__EXPORTS:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), true, false ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 14
Project: TOSCA-Studio   File: Tosca_nodes_computeItemProvider.java   View Source Code Vote up 5 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged(Notification notification) {
	updateChildren(notification);

	switch (notification.getFeatureID(Tosca_nodes_compute.class)) {
		case ToscaPackage.TOSCA_NODES_COMPUTE__MIN_INSTANCES:
		case ToscaPackage.TOSCA_NODES_COMPUTE__MAX_INSTANCES:
		case ToscaPackage.TOSCA_NODES_COMPUTE__DEFAULT_INSTANCES:
		case ToscaPackage.TOSCA_NODES_COMPUTE__PORT_NAME:
		case ToscaPackage.TOSCA_NODES_COMPUTE__PROTOCOL:
		case ToscaPackage.TOSCA_NODES_COMPUTE__PORT:
		case ToscaPackage.TOSCA_NODES_COMPUTE__INITIATOR:
		case ToscaPackage.TOSCA_NODES_COMPUTE__NETWORK_NAME:
		case ToscaPackage.TOSCA_NODES_COMPUTE__SECURE:
		case ToscaPackage.TOSCA_NODES_COMPUTE__PORTS:
		case ToscaPackage.TOSCA_NODES_COMPUTE__URL_PATH:
		case ToscaPackage.TOSCA_NODES_COMPUTE__TYPE:
		case ToscaPackage.TOSCA_NODES_COMPUTE__DISTRIBUTION:
		case ToscaPackage.TOSCA_NODES_COMPUTE__VERSION:
		case ToscaPackage.TOSCA_NODES_COMPUTE__DISK_SIZE:
		case ToscaPackage.TOSCA_NODES_COMPUTE__PRIVATE_ADDRESS:
		case ToscaPackage.TOSCA_NODES_COMPUTE__PUBLIC_ADDRESS:
		case ToscaPackage.TOSCA_NODES_COMPUTE__NETWORKS:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
			return;
	}
	super.notifyChanged(notification);
}
 
Example 15
Project: neoscada   File: NumericGroupFieldItemProvider.java   View Source Code Vote up 5 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( NumericGroupField.class ) )
    {
        case ParserPackage.NUMERIC_GROUP_FIELD__GROUP_NUMBER:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 16
Project: neoscada   File: SourceItemItemProvider.java   View Source Code Vote up 5 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( SourceItem.class ) )
    {
        case OsgiPackage.SOURCE_ITEM__SOURCE_NAME:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 17
Project: neoscada   File: SerialToNetworkSetupModuleItemProvider.java   View Source Code Vote up 5 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( SerialToNetworkSetupModule.class ) )
    {
        case CommonPackage.SERIAL_TO_NETWORK_SETUP_MODULE__MAPPINGS:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), true, false ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 18
Project: neoscada   File: UriItemItemProvider.java   View Source Code Vote up 5 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged ( Notification notification )
{
    updateChildren ( notification );

    switch ( notification.getFeatureID ( UriItem.class ) )
    {
        case ChartPackage.URI_ITEM__CONNECTION_URI:
            fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) );
            return;
    }
    super.notifyChanged ( notification );
}
 
Example 19
Project: time4sys   File: HrmEditor.java   View Source Code Vote up 5 votes
@Override
public void notifyChanged(Notification notification) {
	if (notification.getNotifier() instanceof Resource) {
		switch (notification.getFeatureID(Resource.class)) {
			case Resource.RESOURCE__IS_LOADED:
			case Resource.RESOURCE__ERRORS:
			case Resource.RESOURCE__WARNINGS: {
				Resource resource = (Resource)notification.getNotifier();
				Diagnostic diagnostic = analyzeResourceProblems(resource, null);
				if (diagnostic.getSeverity() != Diagnostic.OK) {
					resourceToDiagnosticMap.put(resource, diagnostic);
				}
				else {
					resourceToDiagnosticMap.remove(resource);
				}

				if (updateProblemIndication) {
					getSite().getShell().getDisplay().asyncExec
						(new Runnable() {
							 public void run() {
								 updateProblemIndication();
							 }
						 });
				}
				break;
			}
		}
	}
	else {
		super.notifyChanged(notification);
	}
}
 
Example 20
Project: gemoc-studio   File: GImportStatementItemProvider.java   View Source Code Vote up 5 votes
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged(Notification notification) {
	updateChildren(notification);

	switch (notification.getFeatureID(GImportStatement.class)) {
		case GexpressionsPackage.GIMPORT_STATEMENT__IMPORT_URI:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
			return;
	}
	super.notifyChanged(notification);
}