Administration Tools

org.topcased.service.updatesite
Class TreeUpdateSiteWizardTreatment

java.lang.Object
  extended by org.topcased.service.updatesite.TreeUpdateSiteWizardTreatment

public class TreeUpdateSiteWizardTreatment
extends java.lang.Object

This class contains the TreeUpdateSiteWizardPage treatments


Field Summary
static java.lang.String BASE_PATH
           
static java.lang.String BASE_URL
           
static java.lang.String iconPath
           
static org.eclipse.swt.graphics.Image picAlreadyInstalled
          Define an image which represent an element which is already installed on destination
static org.eclipse.swt.graphics.Image picCategory
          Define an image which represent a category of feature
static org.eclipse.swt.graphics.Image picFeature
          Define an image which represent a feature
static org.eclipse.swt.graphics.Image picMissingError
          Define an image which represent an element with missing error
static org.eclipse.swt.graphics.Image picWillBeInstalled
          Define an image which represent an element which will be installed on destination
 
Constructor Summary
TreeUpdateSiteWizardTreatment(UpdateSiteWizard theWizard)
          Contructor : initialize all Maps and all images used in the wizard
 
Method Summary
 void addFeature(org.eclipse.swt.widgets.TreeItem treeItem, SourceDestination featureSD, java.util.Map mapFeaturesIncluded, java.util.Map mapPlugins)
          Add all the plugins imported and all the features included (recursivly) of the given feature Add the TreeItems to a treeItem
 void addRequiredPlugin(org.eclipse.swt.widgets.TreeItem treeItem, SourceDestination pluginSD, java.util.Map mapPluginsRequired)
          Add the required plugins of a plugins given (recursivity) Add the plugins in a TreeItem
 void addRequiredPlugins(org.eclipse.swt.widgets.Tree tree)
          Add the required plugins to a tree (add the TreeItem "Required plugins") and to the map of required plugins
 void initializeTree(org.eclipse.swt.widgets.Tree tree)
          Initialize a tree with the map of the Features choosen
 void readRequiredPluginFromMap(java.util.Map map)
          Read all the plugins required for a Map of features, and call addRequiredPlugins for all
 void subRequiredPlugins(org.eclipse.swt.widgets.Tree tree)
          Dispose the TreeItem "Required plugins" to the given tree and clear the map of required plugins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_URL

public static final java.lang.String BASE_URL

BASE_PATH

public static final java.lang.String BASE_PATH

iconPath

public static final java.lang.String iconPath
See Also:
Constant Field Values

picMissingError

public static org.eclipse.swt.graphics.Image picMissingError
Define an image which represent an element with missing error


picAlreadyInstalled

public static org.eclipse.swt.graphics.Image picAlreadyInstalled
Define an image which represent an element which is already installed on destination


picWillBeInstalled

public static org.eclipse.swt.graphics.Image picWillBeInstalled
Define an image which represent an element which will be installed on destination


picCategory

public static org.eclipse.swt.graphics.Image picCategory
Define an image which represent a category of feature


picFeature

public static org.eclipse.swt.graphics.Image picFeature
Define an image which represent a feature

Constructor Detail

TreeUpdateSiteWizardTreatment

public TreeUpdateSiteWizardTreatment(UpdateSiteWizard theWizard)
Contructor : initialize all Maps and all images used in the wizard

Parameters:
theWizard - the current wizard
Method Detail

initializeTree

public void initializeTree(org.eclipse.swt.widgets.Tree tree)
Initialize a tree with the map of the Features choosen

Parameters:
tree - Tree to initialize

addRequiredPlugins

public void addRequiredPlugins(org.eclipse.swt.widgets.Tree tree)
Add the required plugins to a tree (add the TreeItem "Required plugins") and to the map of required plugins

Parameters:
tree - to initalize

readRequiredPluginFromMap

public void readRequiredPluginFromMap(java.util.Map map)
Read all the plugins required for a Map of features, and call addRequiredPlugins for all

Parameters:
map - the map which contains the plugins

subRequiredPlugins

public void subRequiredPlugins(org.eclipse.swt.widgets.Tree tree)
Dispose the TreeItem "Required plugins" to the given tree and clear the map of required plugins

Parameters:
tree - the tree

addFeature

public void addFeature(org.eclipse.swt.widgets.TreeItem treeItem,
                       SourceDestination featureSD,
                       java.util.Map mapFeaturesIncluded,
                       java.util.Map mapPlugins)
Add all the plugins imported and all the features included (recursivly) of the given feature Add the TreeItems to a treeItem

Parameters:
treeItem -
featureSD - the feature
mapFeaturesIncluded - the map which contains the features included
mapPlugins - the map which contains the plugins imported

addRequiredPlugin

public void addRequiredPlugin(org.eclipse.swt.widgets.TreeItem treeItem,
                              SourceDestination pluginSD,
                              java.util.Map mapPluginsRequired)
Add the required plugins of a plugins given (recursivity) Add the plugins in a TreeItem

Parameters:
treeItem -
pluginSD - the plugin
mapPluginsRequired - the map of the plugins required

Administration Tools

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.