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


Java ContainerSelectionDialog.OK屬性代碼示例

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


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

示例1: handleBrowse

/**
 * Uses the standard container selection dialog to
 * choose the new value for the container field.
 */

private void handleBrowse() {
	ContainerSelectionDialog dialog =
		new ContainerSelectionDialog(
			getShell(),
			ResourcesPlugin.getWorkspace().getRoot(),
			false,
			"Select new file container");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerText.setText(((Path)result[0]).toOSString());
		}
	}
}
 
開發者ID:convertigo,項目名稱:convertigo-eclipse,代碼行數:19,代碼來源:SampleNewWizardPage.java

示例2: handleBrowse

/**
 * Uses the standard container selection dialog to choose the new value for
 * the container field.
 */
public void handleBrowse() {
  IWorkspace _workspace = ResourcesPlugin.getWorkspace();
  IWorkspaceRoot _root = _workspace.getRoot();
  ContainerSelectionDialog _containerSelectionDialog = new ContainerSelectionDialog(this.shell, _root, false, 
    "Select new file container");
  final ContainerSelectionDialog dialog = _containerSelectionDialog;
  int _open = dialog.open();
  boolean _equals = (_open == ContainerSelectionDialog.OK);
  if (_equals) {
    final Object[] result = dialog.getResult();
    int _length = result.length;
    boolean _equals_1 = (_length == 1);
    if (_equals_1) {
      Object _get = result[0];
      String _string = ((Path) _get).toString();
      this.containerText.setText(_string);
    }
  }
}
 
開發者ID:RobertWalter83,項目名稱:DialogScriptDSL,代碼行數:23,代碼來源:DialogScriptSelectionAdapter.java

示例3: handleBrowse

/**
 * Uses the standard container selection dialog to choose the new value for
 * the container field.
 */

private void handleBrowse() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), ResourcesPlugin.getWorkspace().getRoot(), false, "Select new file container");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerText.setText(((Path) result[0]).toString());
		}
	}
}
 
開發者ID:dstl,項目名稱:Open_Source_ECOA_Toolset_AS5,代碼行數:14,代碼來源:CompImplMainPage.java

示例4: handleBrowse

private void handleBrowse() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), ResourcesPlugin.getWorkspace().getRoot(), false, "Select new file container");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerText.setText(((Path) result[0]).toString());
		}
	}
}
 
開發者ID:dstl,項目名稱:Open_Source_ECOA_Toolset_AS5,代碼行數:9,代碼來源:TypesMainPage.java

示例5: handleBrowse

/**
 * Uses the standard container selection dialog to choose the new value for the
 * container field.
 */
private void handleBrowse() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(),
			ResourcesPlugin.getWorkspace().getRoot(), false,
			EditorConfigMessages.NewEditorConfigFileWizardPage_containerSelectionDialog_title);
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			folderText.setText(((Path) result[0]).toString());
		}
	}
}
 
開發者ID:angelozerr,項目名稱:ec4e,代碼行數:15,代碼來源:NewEditorConfigFileWizardPage.java

示例6: handleBrowse

/**
 * Uses the standard container selection dialog to choose the new value for
 * the container field.
 */

private void handleBrowse() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(
			getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
			"Select new file container");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerSourceText.setText(((Path) result[0]).toString());
		}
	}
}
 
開發者ID:VisuFlow,項目名稱:visuflow-plugin,代碼行數:16,代碼來源:TargetHandlerDialog.java

示例7: handleBrowse2

private void handleBrowse2() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(
			getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
			"Select new file container");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerTargetText.setText(((Path) result[0]).toString());
		}
	}
}
 
開發者ID:VisuFlow,項目名稱:visuflow-plugin,代碼行數:11,代碼來源:TargetHandlerDialog.java

示例8: handleProjectBrowse

/**
 * This method handles project selection. It displays the user, all the projects in current workspace and let user
 * select the project
 **/
private void handleProjectBrowse() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(
			getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
			"Select new file container");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerTargetText.setText(((Path) result[0]).toString());
		}
	}
}
 
開發者ID:VisuFlow,項目名稱:visuflow-plugin,代碼行數:15,代碼來源:WizardPageHandler.java

示例9: handleBrowse

/**
 * Uses the standard container selection dialog to choose the new value for
 * the container field.
 */

private void handleBrowse() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(
			getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
			"Select new file container");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerText.setText(((Path) result[0]).toString());
		}
	}
}
 
開發者ID:bsteker,項目名稱:bdf2,代碼行數:16,代碼來源:SampleNewWizardPage.java

示例10: handleBrowse

/**
 * Uses the standard container selection dialog to choose the new value for the
 * container field.
 */
private void handleBrowse() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), ResourcesPlugin.getWorkspace().getRoot(), false, "Select new file container");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerText.setText(((Path) result[0]).toString());
		}
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:13,代碼來源:DwprofileNewFileWizardPage.java

示例11: handleBrowse

private void handleBrowse() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), ResourcesPlugin.getWorkspace()
	                .getRoot(), false, "Select Project/Folder");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerText.setText(((Path) result[0]).toString());
		}
	}
}
 
開發者ID:SAP,項目名稱:hybris-commerce-eclipse-plugin,代碼行數:10,代碼來源:NewImpexWizardPage.java

示例12: handleBrowse

/**
 * Uses the standard container selection dialog to choose the new value for
 * the container field.
 */

protected void handleBrowse() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(
			getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
			"Select new file container");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerText.setText(((Path) result[0]).toString());
		}
	}
}
 
開發者ID:ncleclipse,項目名稱:ncl30-eclipse,代碼行數:16,代碼來源:NCLNewWizardPage.java

示例13: handleBrowse

/**
 * Uses the standard container selection dialog to choose the new value for the container field.
 */
private void handleBrowse() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(),
			ResourcesPlugin.getWorkspace().getRoot(), false, "Select new file container");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerText.setText(((Path) result[0]).toString());
		}
	}
}
 
開發者ID:grosenberg,項目名稱:fluentmark,代碼行數:13,代碼來源:FluentMkNewWizardPage.java

示例14: selectProject

/**
 * Open a dialog box asking the user to select an existing project under the
 * current workspace.
 *
 * @param parentShell
 * @param defaultValue
 * @return a String representing the name of the chosen project, or
 *         defaultValue if nothing was selected (or "cancel" button was
 *         pressed...)
 */
public static String selectProject(Shell parentShell, String defaultValue) {
  IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
  ContainerSelectionDialog dialog = new ContainerSelectionDialog(
      parentShell, workspaceRoot, false, "Select new file container");
  if (dialog.open() == ContainerSelectionDialog.OK) {
    Object[] result = dialog.getResult();
    if (result.length == 1) {
      return ((Path) result[0]).toString();
    }
  }
  return defaultValue;
}
 
開發者ID:google,項目名稱:depan,代碼行數:22,代碼來源:WorkspaceTools.java

示例15: handleBrowse

/**
 * Uses the standard container selection dialog to choose the new value for
 * the container field.
 */

private void handleBrowse() {
	ContainerSelectionDialog dialog = new ContainerSelectionDialog(
			getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
			"Select project");
	if (dialog.open() == ContainerSelectionDialog.OK) {
		Object[] result = dialog.getResult();
		if (result.length == 1) {
			containerText.setText(((Path) result[0]).toString());
			updateProjectPathDep(containerText.getText());
		}
	}
}
 
開發者ID:aspose-total,項目名稱:Aspose.Total-for-Java,代碼行數:17,代碼來源:NewFileWizardPage.java


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