當前位置: 首頁>>代碼示例>>Java>>正文


Java TabItem.setToolTipText方法代碼示例

本文整理匯總了Java中org.eclipse.swt.widgets.TabItem.setToolTipText方法的典型用法代碼示例。如果您正苦於以下問題:Java TabItem.setToolTipText方法的具體用法?Java TabItem.setToolTipText怎麽用?Java TabItem.setToolTipText使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.swt.widgets.TabItem的用法示例。


在下文中一共展示了TabItem.setToolTipText方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: LatticeTabUI

import org.eclipse.swt.widgets.TabItem; //導入方法依賴的package包/類
private LatticeTabUI(TabFolder tabFolderMIPA) 
{
	TabItem tabItemLattice = new TabItem(tabFolderMIPA, SWT.NONE);
	tabItemLattice.setToolTipText("representation of lattice");
	tabItemLattice.setText("Lattice");

	SashForm sashLattice = new SashForm(tabFolderMIPA, SWT.NONE);
	tabItemLattice.setControl(sashLattice);

	StyledText styledTextLattice = new StyledText(sashLattice, SWT.BORDER
			| SWT.READ_ONLY);
	styledTextLattice.setText("Information for lattice are given here \n.");
	styledTextLattice.setToolTipText("Information for lattice.");

	Group grpLatticeTree = new Group(sashLattice, SWT.NONE);
	grpLatticeTree.setToolTipText("tree view of lattice");
	grpLatticeTree.setText("Lattice Tree View");
	
	latticeTreeViewer = new TreeViewer(grpLatticeTree, SWT.BORDER);
	Tree latticeTree = latticeTreeViewer.getTree();
	latticeTree.setBounds(10, 29, 444, 526);
	//latticeTreeViewer.setLabelProvider(new LatticeTreeLabelProvider());
	//latticeTreeViewer.setContentProvider(new LatticeTreeContentProvider());
	sashLattice.setWeights(new int[] { 1, 1 });
}
 
開發者ID:alg-nju,項目名稱:mipa,代碼行數:26,代碼來源:LatticeTabUI.java

示例2: ReportConfigurationTab

import org.eclipse.swt.widgets.TabItem; //導入方法依賴的package包/類
public ReportConfigurationTab(TabFolder parent, FindbugsPropertyPage page, int style) {
    super(parent, style);
    this.propertyPage = page;
    setLayout(new GridLayout());

    TabItem tabDetector = new TabItem(parent, SWT.NONE);
    tabDetector.setText(getMessage("property.reportConfigurationTab"));
    tabDetector.setControl(this);
    tabDetector.setToolTipText("Configure bugs reported to the UI");

    Composite rankAndPrioGroup = new Composite(this, SWT.NONE);
    rankAndPrioGroup.setLayout(new GridLayout(2, false));

    createRankGroup(rankAndPrioGroup);
    createPriorityGroup(rankAndPrioGroup);

    createBugCategoriesGroup(rankAndPrioGroup, page.getProject());
    createBugSeverityGroup(rankAndPrioGroup);
}
 
開發者ID:OpenNTF,項目名稱:FindBug-for-Domino-Designer,代碼行數:20,代碼來源:ReportConfigurationTab.java

示例3: createEdit_mbean_TABFOLDER

import org.eclipse.swt.widgets.TabItem; //導入方法依賴的package包/類
/**
 * This method initializes edit_mbean_TABFOLDER	
 *
 */
private void createEdit_mbean_TABFOLDER(Composite composite) {

	edit_mbean_TABFOLDER = new TabFolder(composite, SWT.NONE);

	attributes_TI = new TabItem(edit_mbean_TABFOLDER, SWT.NONE);
	operations_TI = new TabItem(edit_mbean_TABFOLDER, SWT.NONE);
	notifications_TI = new TabItem(edit_mbean_TABFOLDER, SWT.NONE);

	attributes_TI.setText("Attributes");
	operations_TI.setText("Operations");
	notifications_TI.setText("Notifications");

	attributes_TI.setToolTipText("Attributes Exposed For View and Edit");
	operations_TI
			.setToolTipText("Operations, That May Be Performed on MBean");
	notifications_TI
			.setToolTipText("Notifications emitted by the selected MBean");

	edit_mbean_TABFOLDER.setVisible(false);
}
 
開發者ID:freeVM,項目名稱:freeVM,代碼行數:25,代碼來源:Main.java

示例4: TabMain

import org.eclipse.swt.widgets.TabItem; //導入方法依賴的package包/類
TabMain(TabMediator mediator) {
  this.mediator = mediator;
  TabItem tab = new TabItem(mediator.folder, SWT.NONE);
  tab.setText("General");
  tab.setToolTipText("General location parameters");
  tab.setImage(circle);
  tab.setControl(createControl(mediator.folder));
}
 
開發者ID:Nextzero,項目名稱:hadoop-2.6.0-cdh5.4.3,代碼行數:9,代碼來源:HadoopLocationWizard.java

示例5: TabAdvanced

import org.eclipse.swt.widgets.TabItem; //導入方法依賴的package包/類
TabAdvanced(TabMediator mediator) {
  this.mediator = mediator;
  TabItem tab = new TabItem(mediator.folder, SWT.NONE);
  tab.setText("Advanced parameters");
  tab.setToolTipText("Access to advanced Hadoop parameters");
  tab.setImage(circle);
  tab.setControl(createControl(mediator.folder));

}
 
開發者ID:Nextzero,項目名稱:hadoop-2.6.0-cdh5.4.3,代碼行數:10,代碼來源:HadoopLocationWizard.java

示例6: PredicateTabUI

import org.eclipse.swt.widgets.TabItem; //導入方法依賴的package包/類
private PredicateTabUI(TabFolder tabFolderMIPA) 
{
	TabItem tabItemPredicate = new TabItem(tabFolderMIPA, SWT.NONE);
	tabItemPredicate
			.setToolTipText("In this tab folder, the predicate is given in the form of xml file as well as the view of abstract syntax tree.");
	tabItemPredicate.setText("Predicate");

	SashForm sashPredicate = new SashForm(tabFolderMIPA, SWT.NONE);
	sashPredicate
			.setToolTipText("Drag to change the sizes of the two sides of the window.");
	tabItemPredicate.setControl(sashPredicate);
	
	styledTextPredicate = new StyledText(sashPredicate, SWT.BORDER);
	styledTextPredicate.setToolTipText("Predicate are shown here.");

	Group grpPredicateTree = new Group(sashPredicate, SWT.NONE);
	grpPredicateTree.setToolTipText("Tree view of predicate");
	grpPredicateTree.setText("Predicate Tree View");

	predicateTreeViewer = new TreeViewer(grpPredicateTree, SWT.BORDER);
	Tree treePredicate = predicateTreeViewer.getTree();
	treePredicate.setBounds(10, 28, 444, 527);
	sashPredicate.setWeights(new int[] { 1, 1 });
	//predicateTreeViewer
	//		.setContentProvider(new PredicateTreeContentProvider());
	//predicateTreeViewer.setLabelProvider(new PredicateTreeLabelProvider());
}
 
開發者ID:alg-nju,項目名稱:mipa,代碼行數:28,代碼來源:PredicateTabUI.java

示例7: createPartControl

import org.eclipse.swt.widgets.TabItem; //導入方法依賴的package包/類
/**
 *  Create the control
 */
public void createPartControl(Composite parent) {
	// Connection Group
	this.parent = parent;
	display = parent.getDisplay();
	FillLayout masterLayout = new FillLayout();
	parent.setLayout(masterLayout);
	
	// Create composite with rows
	SashForm sashform = new SashForm(parent, SWT.VERTICAL);
	
	final TabFolder tabFolder = new TabFolder(sashform, SWT.V_SCROLL | SWT.H_SCROLL);

    // Create each tab and set its text, tool tip text, image, and control
	// Connection tab
    TabItem one = new TabItem(tabFolder, SWT.NONE);
    one.setText(Messages.MqttClientView_6);
    one.setToolTipText(Messages.MqttClientView_7);
    one.setControl(getConnectionControl(tabFolder));

    // Publish tab
    TabItem two = new TabItem(tabFolder, SWT.NONE);
    two.setText(Messages.MqttClientView_8);
    two.setToolTipText(Messages.MqttClientView_9);
    two.setControl(getPublishControl(tabFolder));

    // Subscribe tab
    TabItem three = new TabItem(tabFolder, SWT.NONE);
    three.setText(Messages.MqttClientView_10);
    three.setToolTipText(Messages.MqttClientView_11);
    three.setControl(getSubscribeControl(tabFolder));
	
	messageLog = new Text(sashform, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
    messageLog.setFont(new Font(display, new FontData("Courier New", 10, SWT.NORMAL))); //$NON-NLS-1$

	sashform.setWeights(new int[]{2,1});
}
 
開發者ID:gulliverrr,項目名稱:hestia-engine-dev,代碼行數:40,代碼來源:MqttClientView.java

示例8: ConnectDialog

import org.eclipse.swt.widgets.TabItem; //導入方法依賴的package包/類
/**
 * Connect dialog. The connect dialog contains 3 tabs: VM, New and URL.
 */
ConnectDialog(Main main) {

	this.main = main;
	main_SHELL = main.main_SHELL;
	
	connect_SHELL = new Shell(main_SHELL, SWT.CLOSE|SWT.APPLICATION_MODAL);

	connect_SHELL.setText("New Connection...");
	connect_SHELL.setSize(WIDTH, HEIGHT);
	connect_SHELL.setImage(Main.connectIcon);

	connect_TABFOLDER = new TabFolder(connect_SHELL, SWT.NONE);
	connect_TABFOLDER.setBounds(0, 0, WIDTH, HEIGHT-(BUTTON_HEIGHT+5));

	url_TI = new TabItem(connect_TABFOLDER, SWT.NONE);
	create_server_TI = new TabItem(connect_TABFOLDER, SWT.NONE);
	vm_TI = new TabItem(connect_TABFOLDER, SWT.NONE);
	
	vm_TI.setText("Local VM");
	create_server_TI.setText("New Server");
	url_TI.setText("Remote URL");

	vm_TI.setToolTipText("Connect to VM locally");
	create_server_TI.setToolTipText("Create new MBean server");
	url_TI.setToolTipText("Connect to MBean Server using full URL and user credentials");
	
	vm_COMPOSITE = new Composite(connect_TABFOLDER, SWT.NONE);
	create_server_COMPOSITE = new Composite(connect_TABFOLDER, SWT.NONE);
	url_COMPOSITE = new Composite(connect_TABFOLDER, SWT.NONE);
	
	vm_TI.setControl(vm_COMPOSITE);
	create_server_TI.setControl(create_server_COMPOSITE);
	url_TI.setControl(url_COMPOSITE);
	
	fill_create_server_COMPOSITE();
	fill_url_COMPOSITE();
	
	connect_BUTTON = new Button(connect_SHELL, SWT.NONE);
	connect_BUTTON.setBounds(WIDTH/2-(BUTTON_WIDTH+5), HEIGHT-(BUTTON_HEIGHT+5),  BUTTON_WIDTH, BUTTON_HEIGHT);
	connect_BUTTON.setText("Connect");
	
	cancel_BUTTON = new Button(connect_SHELL, SWT.NONE);
	cancel_BUTTON.setBounds(WIDTH/2+5, HEIGHT-(BUTTON_HEIGHT+5),  BUTTON_WIDTH, BUTTON_HEIGHT);
	cancel_BUTTON.setText("Cancel");

	connect_BUTTON.addSelectionListener(new ConnectButtonSelectionListener());

	cancel_BUTTON.addSelectionListener(new CancelButtonSelectionListener());

	connect_SHELL.pack();
	connect_SHELL.open();
}
 
開發者ID:freeVM,項目名稱:freeVM,代碼行數:56,代碼來源:ConnectDialog.java

示例9: ConnectDialog

import org.eclipse.swt.widgets.TabItem; //導入方法依賴的package包/類
public ConnectDialog(Composite parent) {
	if(Conn.DEBUG) OutputView.print("ConnectWizardPage.createControl(Composite)");
	
	connect_TABFOLDER = new TabFolder(parent, SWT.NONE);
	connect_TABFOLDER.setBounds(0, 0, WIDTH, HEIGHT);

	url_TI = new TabItem(connect_TABFOLDER, SWT.NONE);
	 
	create_server_TI = new TabItem(connect_TABFOLDER, SWT.NONE);

	vm_TI = new TabItem(connect_TABFOLDER, SWT.NONE);

	vm_TI.setText("Local VM");
	
	create_server_TI.setText("New Server");

	url_TI.setText("Remote URL");

	vm_TI.setToolTipText("Connect to VM locally");
	create_server_TI.setToolTipText("Create new MBean server");

	url_TI.setToolTipText("Connect to MBean Server using full URL and user credentials");

	 vm_COMPOSITE = new Composite(connect_TABFOLDER, SWT.NONE);

	 create_server_COMPOSITE = new Composite(connect_TABFOLDER, SWT.NONE);

	 url_COMPOSITE = new Composite(connect_TABFOLDER, SWT.NONE);
	
	vm_TI.setControl(vm_COMPOSITE);
	create_server_TI.setControl(create_server_COMPOSITE);
	url_TI.setControl(url_COMPOSITE);
	
	fill_create_server_COMPOSITE();
	fill_url_COMPOSITE();
	fill_vm_COMPOSITE();
	
	if(Conn.DEBUG) OutputView.print("ConnectWizardPage.createControl(Composite) finished.");
}
 
開發者ID:freeVM,項目名稱:freeVM,代碼行數:40,代碼來源:ConnectDialog.java


注:本文中的org.eclipse.swt.widgets.TabItem.setToolTipText方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。