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

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.ui.dialogs
Class WorkingSetConfigurationBlock

java.lang.Object
  extended by 
org.eclipse.ui.dialogs.WorkingSetConfigurationBlock

public class WorkingSetConfigurationBlock
extends Object

Instances of this class provide a reusable composite with controls that allow the selection of working sets. This class is most useful in IWizardPage instances that wish to create resources and pre-install them into particular working sets.

Since:
3.4

Constructor Summary
WorkingSetConfigurationBlock ( String[] workingSetIds, IDialogSettings settings)
          Create a new instance of this working set block using default labels.
WorkingSetConfigurationBlock ( String[] workingSetIds, IDialogSettings settings, String addButtonLabel, String comboLabel, String selectLabel)
          Create a new instance of this working set block using custom labels.
 
Method Summary
 void createContent ( Composite parent)
          Add this block to the parent
static  IWorkingSet[] filter ( IWorkingSet[] workingSets, String[] workingSetIds)
          Filters the given working sets such that the following is true: for each IWorkingSet s in result: s.getId() is element of workingSetIds
  IWorkingSet[] findApplicableWorkingSets ( IStructuredSelection selection)
          Retrieves a working set from the given selection or an empty array if no working set could be retrieved.
  IWorkingSet[] getSelectedWorkingSets ()
          Return the currently selected working sets.
 void setSelection ( IStructuredSelection selection)
          Deprecated. use setWorkingSets(IWorkingSet[]) and findApplicableWorkingSets(IStructuredSelection) instead.
 void setWorkingSets ( IWorkingSet[] workingSets)
          Set the current selection of working sets.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkingSetConfigurationBlock

public WorkingSetConfigurationBlock(
String[] workingSetIds,
                                    
IDialogSettings settings)
Create a new instance of this working set block using default labels.

Parameters:
workingSetIds - working set ids from which the user can choose
settings - to store/load the selection history

WorkingSetConfigurationBlock

public WorkingSetConfigurationBlock(
String[] workingSetIds,
                                    
IDialogSettings settings,
                                    
String addButtonLabel,
                                    
String comboLabel,
                                    
String selectLabel)
Create a new instance of this working set block using custom labels.

Parameters:
workingSetIds - working set ids from which the user can choose
settings - to store/load the selection history
addButtonLabel - the label to use for the checkable enablement button. May be null to use the default value.
comboLabel - the label to use for the recent working set combo. May be null to use the default value.
selectLabel - the label to use for the select button. May be null to use the default value.
Method Detail

filter

public static 
IWorkingSet[] filter(
IWorkingSet[] workingSets,
                                   
String[] workingSetIds)
Filters the given working sets such that the following is true: for each IWorkingSet s in result: s.getId() is element of workingSetIds

Parameters:
workingSets - the array to filter
workingSetIds - the acceptable working set ids
Returns:
the filtered elements

setSelection

public void setSelection(
IStructuredSelection selection)
Deprecated. use setWorkingSets(IWorkingSet[]) and findApplicableWorkingSets(IStructuredSelection) instead.

Set the current selection in the workbench.

Parameters:
selection - the selection to present in the UI or null

setWorkingSets

public void setWorkingSets(
IWorkingSet[] workingSets)
Set the current selection of working sets. This array will be filtered to contain only working sets that are applicable to this instance.

Parameters:
workingSets - the working sets

findApplicableWorkingSets

public 
IWorkingSet[] findApplicableWorkingSets(
IStructuredSelection selection)
Retrieves a working set from the given selection or an empty array if no working set could be retrieved. This selection is filtered based on the criteria used to construct this instance.

Parameters:
selection - the selection to retrieve the working set from
Returns:
the selected working set or an empty array

getSelectedWorkingSets

public 
IWorkingSet[] getSelectedWorkingSets()
Return the currently selected working sets. If the controls representing this block are disabled this array will be empty regardless of the currently selected values.

Returns:
the selected working sets

createContent

public void createContent(
Composite parent)
Add this block to the parent

Parameters:
parent - the parent to add the block to

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