Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.team.core
Class ProjectSetSerializationContext


java.lang.Object
  extended by 
org.eclipse.team.core.ProjectSetSerializationContext

public class ProjectSetSerializationContext
extends Object

The context in which project serialization occurs. The class may be subclassed to represent different serialization contexts.

Since:
3.0

Constructor Summary
ProjectSetSerializationContext ()
          Create a serialization context with no filename
ProjectSetSerializationContext ( String filename)
          Create a serialization context and set the filename of the file that does or is to contain the project set.
 
Method Summary
  IProject[] confirmOverwrite ( IProject[] projects)
          Given an array of projects that currently exist in the workspace determine which of those projects should be overwritten.
  String getFilename ()
          Return the name of the file to or from which the project set is being loaded or saved.
  Object getProperty ( String key)
          Return the property for the given key or null if the property is not set.
  Object getShell ()
          Return a org.eclipse.swt.Shell if there is a UI context or null if executing headless.
 void setProperty ( String key, Object value)
          Set a property of this context.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectSetSerializationContext

public ProjectSetSerializationContext()
Create a serialization context with no filename


ProjectSetSerializationContext

public ProjectSetSerializationContext(
String filename)
Create a serialization context and set the filename of the file that does or is to contain the project set.

Parameters:
filename - a filename or null
Method Detail

confirmOverwrite

public 
IProject[] confirmOverwrite(
IProject[] projects)
                            throws 
TeamException
Given an array of projects that currently exist in the workspace determine which of those projects should be overwritten.

This default implementation always returns an empty array indicating that no existing projects should be overwritten. Subclasses may override this as appropriate.

Parameters:
projects - an array of projects currently existing in the workspace that are desired to be overwritten. (not null, contains no nulls)
Returns:
an array of zero or more projects that should be overwritten or null if the operation is to be canceled
Throws:
TeamException

getShell

public 
Object getShell()
Return a org.eclipse.swt.Shell if there is a UI context or null if executing headless.

Returns:
the shell or null

getFilename

public 
String getFilename()
Return the name of the file to or from which the project set is being loaded or saved. This may be null.

Returns:
the filename or null

setProperty

public void setProperty(
String key,
                        
Object value)
Set a property of this context.

Parameters:
key - the property key
value - the property value
Since:
3.3

getProperty

public 
Object getProperty(
String key)
Return the property for the given key or null if the property is not set.

Parameters:
key - the property key
Returns:
the property value
Since:
3.3

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire