colareplacementtransformationstategy.java

来自「Introduction to Sybase IQ.pdf」· Java 代码 · 共 45 行

JAVA
45
字号
/**************************************************************************** * Copyright (c) 2008 Mustafa K. Isik and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: *    Mustafa K. Isik - initial API and implementation *****************************************************************************/package org.eclipse.ecf.internal.sync.doc.cola;import org.eclipse.ecf.core.util.Trace;import org.eclipse.ecf.internal.sync.Activator;import org.eclipse.ecf.internal.sync.SyncDebugOptions;//TODO make this to be something like a marker interface, does not need to be a classpublic class ColaReplacementTransformationStategy implements ColaTransformationStrategy {	private static final long serialVersionUID = -7295023855308474804L;	private static ColaReplacementTransformationStategy INSTANCE;	private ColaReplacementTransformationStategy() {		// default constructor is private to enforce singleton property via		// static factory method	}	public static ColaTransformationStrategy getInstance() {		if (INSTANCE == null) {			INSTANCE = new ColaReplacementTransformationStategy();		}		return INSTANCE;	}	public ColaDocumentChangeMessage getOperationalTransform(ColaDocumentChangeMessage remoteMsg, ColaDocumentChangeMessage appliedLocalMsg, boolean localMsgHighPrio) {		Trace.entering(Activator.PLUGIN_ID, SyncDebugOptions.METHODS_ENTERING, this.getClass(), "getOperationalTransform", new Object[] {remoteMsg, appliedLocalMsg, new Boolean(localMsgHighPrio)}); //$NON-NLS-1$		Trace.exiting(Activator.PLUGIN_ID, SyncDebugOptions.METHODS_EXITING, this.getClass(), "getOperationalTransform", null); //$NON-NLS-1$		return null;	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?