当前位置: 首页>>代码示例>>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;未经允许,请勿转载。