PTP
Release 5.0

org.eclipse.ptp.ui
Interface IMachineManager

All Superinterfaces:
IElementManager
All Known Implementing Classes:
MachineManager

public interface IMachineManager
extends IElementManager


Field Summary
 
Fields inherited from interface org.eclipse.ptp.ui.IElementManager
ADD_ELEMENT_TYPE, CHANGE_SET_TYPE, CREATE_SET_TYPE, DELETE_SET_TYPE, EMPTY_ID, REMOVE_ELEMENT_TYPE
 
Method Summary
 void addMachine(org.eclipse.ptp.core.elements.IPMachine machine)
          Add a new machine to machineList.
 void addNode(org.eclipse.ptp.core.elements.IPNode node)
          Add a node to the view
 org.eclipse.ptp.core.elements.IPMachine findMachineById(String id)
          Find a machine using its ID
 org.eclipse.ptp.core.elements.IPNode findNode(String id)
          Find node using its ID
 org.eclipse.ptp.core.elements.IPMachine getCurrentMachine()
          Get current machine
 org.eclipse.ptp.core.elements.IPMachine[] getMachines()
          Get machines in the view
 void removeMachine(org.eclipse.ptp.core.elements.IPMachine machine)
          Remove machine from the view
 void removeNode(org.eclipse.ptp.core.elements.IPNode node)
          Remove node from the view
 void setMachine(org.eclipse.ptp.core.elements.IPMachine machine)
          Set current machine.
 
Methods inherited from interface org.eclipse.ptp.ui.IElementManager
addSetListener, addToSet, addToSet, clear, createSet, fireSetEvent, getCurrentSetId, getElementHandler, getFullyQualifiedName, getImage, getName, initial, removeElementHandler, removeFromSet, removeSet, removeSetListener, setCurrentSetId, setElementHandler, shutdown, size
 

Method Detail

addMachine

void addMachine(org.eclipse.ptp.core.elements.IPMachine machine)
Add a new machine to machineList. Add any new nodes to the element handler for the machine.

Parameters:
machine - machine

addNode

void addNode(org.eclipse.ptp.core.elements.IPNode node)
Add a node to the view

Parameters:
node - node

findMachineById

org.eclipse.ptp.core.elements.IPMachine findMachineById(String id)
Find a machine using its ID

Parameters:
id - ID of machine
Returns:
machine

findNode

org.eclipse.ptp.core.elements.IPNode findNode(String id)
Find node using its ID

Parameters:
id - node ID
Returns:
null is not found

getCurrentMachine

org.eclipse.ptp.core.elements.IPMachine getCurrentMachine()
Get current machine

Returns:
current machine

getMachines

org.eclipse.ptp.core.elements.IPMachine[] getMachines()
Get machines in the view

Returns:
machines

removeMachine

void removeMachine(org.eclipse.ptp.core.elements.IPMachine machine)
Remove machine from the view

Parameters:
machine -

removeNode

void removeNode(org.eclipse.ptp.core.elements.IPNode node)
Remove node from the view

Parameters:
node - node

setMachine

void setMachine(org.eclipse.ptp.core.elements.IPMachine machine)
Set current machine. If the machine has never been set before, add an entry to the machineList, and add the nodes to the element handler.

Parameters:
machine - machine

PTP
Release 5.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.