Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 621287c56f686551e5908bbdc3db32829157339d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                                                            
                                                   









                                                                            
                           
 
                                                         
                                  
                                                         

                                                          


                       
                                                                  




                     
                                                                     














                                                                            







                                                                             

   
/***************************************************************************
 * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
 * 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:
 *    Eike Stepper - initial API and implementation
 **************************************************************************/
package org.eclipse.emf.internal.cdo.protocol;

import java.io.IOException;

import org.eclipse.emf.cdo.protocol.CDOProtocolConstants;
import org.eclipse.net4j.IChannel;
import org.eclipse.net4j.util.io.ExtendedDataInputStream;
import org.eclipse.net4j.util.io.ExtendedDataOutputStream;

/**
 * @author Eike Stepper
 */
public class ViewsChangedRequest extends CDOClientRequest<Boolean>
{
  private int viewID;

  private byte kind;

  public ViewsChangedRequest(IChannel channel, int viewID, byte kind)
  {
    super(channel);
    this.viewID = viewID;
    this.kind = kind;
  }

  @Override
  protected short getSignalID()
  {
    return CDOProtocolConstants.SIGNAL_VIEWS_CHANGED;
  }

  @Override
  protected void requesting(ExtendedDataOutputStream out) throws IOException
  {
	    out.writeInt(viewID);
	    out.writeByte(kind);
  }

  @Override
  protected Boolean confirming(ExtendedDataInputStream in) throws IOException
  {
	return in.readBoolean();
  }
}

Back to the top