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.update.core
Class FeatureReference


java.lang.Object
  extended by 

org.eclipse.core.runtime.PlatformObject
      extended by 

org.eclipse.update.core.model.ModelObject
          extended by 

org.eclipse.update.core.model.FeatureReferenceModel
              extended by 
org.eclipse.update.core.FeatureReference
All Implemented Interfaces:
IAdaptable, IFeatureReference, IPlatformEnvironment
Direct Known Subclasses:
IncludedFeatureReferenceModel, SiteFeatureReferenceModel

Deprecated. The org.eclipse.update component has been replaced by Equinox p2. This provisional API was never promoted to stable API, and may be removed from a future release of the platform.

public class FeatureReference
extends FeatureReferenceModel
implements IFeatureReference, IPlatformEnvironment

Convenience implementation of a feature reference.

This class may be instantiated or subclassed by clients.

Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.0
See Also:
IFeatureReference, FeatureReferenceModel

Constructor Summary
FeatureReference ()
          Deprecated. Feature reference default constructor
FeatureReference ( FeatureReferenceModel ref)
          Deprecated. Constructor FeatureReference.
FeatureReference ( IFeatureReference ref)
          Deprecated. Constructor FeatureReference.
 
Method Summary
  IFeature getFeature ()
          Deprecated. use getFeaure(IProgressMonitor)
protected   IFeature getFeature ( IFeatureReference ref, IProgressMonitor monitor)
          Deprecated. Returns the feature the reference points to
  IFeature getFeature ( IProgressMonitor monitor)
          Deprecated. Returns the feature this reference points to
  String getName ()
          Deprecated. Returns the label for the referenced feature
  String getNL ()
          Deprecated. Get optional locale specification as a comma-separated string.
  String getOS ()
          Deprecated. Get optional operating system specification as a comma-separated string.
  String getOSArch ()
          Deprecated. Get optional system architecture specification as a comma-separated string.
  ISite getSite ()
          Deprecated. Returns the update site for the referenced feature
  VersionedIdentifier getVersionedIdentifier ()
          Deprecated. Returns the feature identifier.
  String getWS ()
          Deprecated. Get optional windowing system specification as a comma-separated string.
 boolean isPatch ()
          Deprecated. Returns true if this feature is patching another feature, false otherwise
 void setSite ( ISite site)
          Deprecated. Associates a site with the feature reference.
 void setURL ( URL url)
          Deprecated. Sets the feature reference URL.
 
Methods inherited from class org.eclipse.update.core.model. FeatureReferenceModel
equals, getFeatureIdentifier, getFeatureVersion, getLabel, getLabelNonLocalized, getPatch, getPropertyName, getSiteModel, getType, getURL, getURLString, resolve, setArch, setFeatureIdentifier, setFeatureVersion, setLabel, setNL, setOS, setPatch, setSiteModel, setType, setURLString, setWS, toString
 
Methods inherited from class org.eclipse.update.core.model. ModelObject
arrayTypeFor, arrayTypeFor, assertIsWriteable, getResourceBundle, isReadOnly, markListReferenceReadOnly, markReadOnly, markReferenceReadOnly, resolveListReference, resolveNLString, resolveReference, resolveURL
 
Methods inherited from class org.eclipse.core.runtime. PlatformObject
getAdapter
 
Methods inherited from class java.lang. Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.update.core. IFeatureReference
getURL
 
Methods inherited from interface org.eclipse.core.runtime. IAdaptable
getAdapter
 

Constructor Detail

FeatureReference

public FeatureReference()
Deprecated. 
Feature reference default constructor


FeatureReference

public FeatureReference(
IFeatureReference ref)
Deprecated. 
Constructor FeatureReference.

Parameters:
ref - the reference to copy

FeatureReference

public FeatureReference(
FeatureReferenceModel ref)
Deprecated. 
Constructor FeatureReference.

Parameters:
ref - the reference to copy
Method Detail

getFeature

public 
IFeature getFeature()
                    throws 
CoreException
Deprecated. use getFeaure(IProgressMonitor)

Returns the feature this reference points to

Specified by:
getFeature in interface IFeatureReference
Returns:
the feature on the Site
Throws:
CoreException

getFeature

public 
IFeature getFeature(
IProgressMonitor monitor)
                    throws 
CoreException
Deprecated. 
Returns the feature this reference points to

Specified by:
getFeature in interface IFeatureReference
Parameters:
monitor - the progress monitor
Returns:
the feature on the Site
Throws:
CoreException

getFeature

protected 
IFeature getFeature(
IFeatureReference ref,
                              
IProgressMonitor monitor)
                       throws 
CoreException
Deprecated. 
Returns the feature the reference points to

Parameters:
ref - the feature reference
Returns:
the feature on the Site
Throws:
CoreException

getSite

public 
ISite getSite()
Deprecated. 
Returns the update site for the referenced feature

Specified by:
getSite in interface IFeatureReference
Returns:
feature site
Since:
2.0
See Also:
IFeatureReference.getSite()

setURL

public void setURL(
URL url)
            throws 
CoreException
Deprecated. 
Sets the feature reference URL. This is typically performed as part of the feature reference creation operation. Once set, the url should not be reset.

Specified by:
setURL in interface IFeatureReference
Parameters:
url - reference URL
Throws:
CoreException
Since:
2.0
See Also:
IFeatureReference.setURL(URL)

setSite

public void setSite(
ISite site)
Deprecated. 
Associates a site with the feature reference. This is typically performed as part of the feature reference creation operation. Once set, the site should not be reset.

Specified by:
setSite in interface IFeatureReference
Parameters:
site - site for the feature reference
Since:
2.0
See Also:
IFeatureReference.setSite(ISite)

getVersionedIdentifier

public 
VersionedIdentifier getVersionedIdentifier()
Deprecated. 
Returns the feature identifier.

Specified by:
getVersionedIdentifier in interface IFeatureReference
Returns:
the feature identifier.
Since:
2.0
See Also:
IFeatureReference.getVersionedIdentifier()

getName

public 
String getName()
Deprecated. 
Description copied from interface: IFeatureReference
Returns the label for the referenced feature

Specified by:
getName in interface IFeatureReference
Returns:
the label
See Also:
IFeatureReference.getName()

getOS

public 
String getOS()
Deprecated. 
Get optional operating system specification as a comma-separated string.

Specified by:
getOS in interface IPlatformEnvironment
Overrides:
getOS in class FeatureReferenceModel
Returns:
the operating system specification string, or null.
Since:
2.1

getWS

public 
String getWS()
Deprecated. 
Get optional windowing system specification as a comma-separated string.

Specified by:
getWS in interface IPlatformEnvironment
Overrides:
getWS in class FeatureReferenceModel
Returns:
the windowing system specification string, or null.
Since:
2.1

getOSArch

public 
String getOSArch()
Deprecated. 
Get optional system architecture specification as a comma-separated string.

Specified by:
getOSArch in interface IPlatformEnvironment
Overrides:
getOSArch in class FeatureReferenceModel
Returns:
the system architecture specification string, or null.
Since:
2.1

getNL

public 
String getNL()
Deprecated. 
Get optional locale specification as a comma-separated string.

Specified by:
getNL in interface IPlatformEnvironment
Overrides:
getNL in class FeatureReferenceModel
Returns:
the locale specification string, or null.
Since:
2.1

isPatch

public boolean isPatch()
Deprecated. 
Returns true if this feature is patching another feature, false otherwise

Specified by:
isPatch in interface IFeatureReference
Returns:
boolean

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