• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java BaseProjectWizardFields类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields的典型用法代码示例。如果您正苦于以下问题:Java BaseProjectWizardFields类的具体用法?Java BaseProjectWizardFields怎么用?Java BaseProjectWizardFields使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



BaseProjectWizardFields类属于org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui包,在下文中一共展示了BaseProjectWizardFields类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: init

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
@Override
public void init(BaseProjectWizardFields data) {
	super.init(data);
	setWindowTitle(WizardTemplateMessages.SequentialSingleLanguageTemplate_wtitle);
	
	try {
		String project = getData().projectName;
		String SUFFIX = ".xdsml";
		if(project.endsWith(SUFFIX)){
			
			int startSuffix = project.length() - SUFFIX.length();
			int startName = project.lastIndexOf(".", startSuffix-1) + 1;
			
			String packageName = project.substring(0, startName - 1).toLowerCase();
			String languageName = project.substring(startName, startSuffix);
			languageName = Strings.toFirstUpper(languageName);

			ITemplateSection[] selections = getTemplateSections();
			SequentialSingleLanguageTemplate selection = (SequentialSingleLanguageTemplate) selections[0];
			selection.updateOptions(packageName, languageName, languageName);
		}
	} catch (Exception e) {}
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:24,代码来源:SequentialSingleLanguageNewWizard.java


示例2: init

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
@Override
public void init(BaseProjectWizardFields data) {
	super.init(data);
	setWindowTitle(WizardTemplateMessages.SequentialExtendedLanguageTemplate_wtitle);
	
	try {
		String project = getData().projectName;
		String SUFFIX = ".xdsml";
		if(project.endsWith(SUFFIX)){
			
			int startSuffix = project.length() - SUFFIX.length();
			int startName = project.lastIndexOf(".", startSuffix-1) + 1;
			
			String packageName = project.substring(0, startName - 1).toLowerCase();
			String languageName = project.substring(startName, startSuffix);
			languageName = Strings.toFirstUpper(languageName);

			ITemplateSection[] selections = getTemplateSections();
			SequentialExtendedLanguageTemplate selection = (SequentialExtendedLanguageTemplate) selections[0];
			selection.updateOptions(packageName, languageName, languageName);
		}
	} catch (Exception e) {}
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:24,代码来源:SequentialExtendedLanguageNewWizard.java


示例3: init

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
@Override
public void init(BaseProjectWizardFields data) {
	super.init(data);
	setWindowTitle("Simple sequential GEMOC project");
	
	try {
		String project = getData().projectName;
		String SUFFIX = ".xdsml";
		if(project.endsWith(SUFFIX)){
			
			int startSuffix = project.length() - SUFFIX.length();
			int startName = project.lastIndexOf(".", startSuffix-1) + 1;
			
			String packageName = project.substring(0, startName - 1).toLowerCase();
			String languageName = project.substring(startName, startSuffix);
			languageName = Strings.toFirstUpper(languageName);

			ITemplateSection[] selections = getTemplateSections();
			SequentialTemplate selection = (SequentialTemplate) selections[0];
			selection.updateOptions(packageName, languageName);
		}
	} catch (Exception e) {}
}
 
开发者ID:SiriusLab,项目名称:ModelDebugging,代码行数:24,代码来源:SequentialNewWizard.java


示例4: initializeFields

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
protected void initializeFields(BaseProjectWizardFields data) {
	final String projectName = ((NewMelangeProjectWizardFields)data).projectName;
	String packageName = getFormattedPackageName(projectName);
	initializeOption(KEY_PACKAGE_NAME, packageName);
	_data = (NewMelangeProjectWizardFields) data;
	String languageName = inferLanguageNameFromProjectName(projectName);
	updateOptions(packageName, languageName, languageName);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:9,代码来源:SequentialExtendedLanguageTemplate.java


示例5: TemplateListSelectionPage

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
/**
 * Constructor
 * @param wizardElements a list of TemplateElementWizard objects
 * @param page content wizard page
 * @param message message to provide to the user
 */
public TemplateListSelectionPage(ElementList wizardElements, BaseProjectWizardFields context, String message) {
	super(wizardElements, message);
	fContext = context;
	setTitle(PDEUIMessages.WizardListSelectionPage_title);
	setDescription(PDEUIMessages.WizardListSelectionPage_desc);
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:13,代码来源:TemplateListSelectionPage.java


示例6: initializeFields

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
protected void initializeFields(BaseProjectWizardFields data) {
	// save reference to content for later use 
	_data = (NewK3ProjectWizardFields)data;
	// initialize values according to previous pages content or o
	//String packageName = getFormattedPackageName(_data.projectName);
	//initializeOption(KEY_PACKAGE_NAME, packageName);
	if(_data.ecoreIFile != null){
		initializeOption(KEY_ECOREFILE_PATH,_data.ecoreIFile.getFullPath().toOSString());
	}
	if(_data.basePackage != null){
		initializeOption(KEY_ECOREBASEPACKAGE_NAME,_data.basePackage);
	} 
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:14,代码来源:UserEcoreBasicAspectTemplate.java


示例7: initializeFields

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
protected void initializeFields(BaseProjectWizardFields data) {
	super.initializeFields(data);	
	if(_data.ecoreIFile != null){
		String ecoreBaseName = _data.ecoreIFile.getLocation().removeFileExtension().lastSegment();
		initializeOption(KEY_METAMODEL_NAME,Character.toUpperCase(ecoreBaseName.charAt(0)) + ecoreBaseName.substring(1));
		initializeOption(KEY_MELANGE_FILE_NAME,ecoreBaseName);
	}
	else{
		initializeOption(KEY_METAMODEL_NAME,METAMODEL_NAME);
		initializeOption(KEY_MELANGE_FILE_NAME,MELANGE_FILE_NAME);
	}
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:13,代码来源:UserEcoreBasicAspectWithMelangeTemplate.java


示例8: getTemplateListSelectionPage

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
public TemplateListSelectionPage getTemplateListSelectionPage(BaseProjectWizardFields context) {
	if(templateSelectionPage == null){
		templateSelectionPage = new TemplateListSelectionPage(getAvailableCodegenWizards(), context, "&Available Templates:");
	}
	return templateSelectionPage;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:7,代码来源:AbstractNewProjectWizardWithTemplates.java


示例9: init

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
public void init(BaseProjectWizardFields data) {
	this.data = data;
	setWindowTitle(PDEUIMessages.PluginCodeGeneratorWizard_title);
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:5,代码来源:AbstractNewProjectTemplateWizard.java


示例10: ProjectTemplateApplicationOperation

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
/**
 * @param data
 * @param provider representation of the project
 * @param contentWizard wizard to run to get details for the chosen template, may be <code>null</code> if a template is not being used
 */
public ProjectTemplateApplicationOperation(BaseProjectWizardFields data, IProject project, IProjectContentWizard contentWizard) {
	fData = data;
	fProject = project;
	fContentWizard = contentWizard;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:11,代码来源:ProjectTemplateApplicationOperation.java


示例11: init

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
public void init(BaseProjectWizardFields data) {
	super.init(data);
	setWindowTitle(MelangeTemplateMessages.SimpleMTTemplate_wtitle);
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:5,代码来源:SimpleMTNewWizard.java


示例12: initializeFields

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
protected void initializeFields(BaseProjectWizardFields data) {
	String packageName = getFormattedPackageName(((NewMelangeProjectWizardFields)data).projectName);
	initializeOption(KEY_PACKAGE_NAME, packageName);
	_data = (NewMelangeProjectWizardFields) data;
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:6,代码来源:SimpleMTTemplate.java


示例13: initializeFields

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
protected void initializeFields(BaseProjectWizardFields data) {
	String packageName = getFormattedPackageName(((NewK3ProjectWizardFields)data).projectName);
	initializeOption(KEY_PACKAGE_NAME, packageName);
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:5,代码来源:MiniEcoreAspectSampleTemplate.java


示例14: init

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
public void init(BaseProjectWizardFields data) {
	super.init(data);
	setWindowTitle(K3TemplateMessages.UserEcoreBasicAspectWithMelangeTemplate_wtitle);
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:5,代码来源:UserEcoreBasicAspectWithMelangeNewWizard.java


示例15: init

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
public void init(BaseProjectWizardFields data) {
	super.init(data);
	setWindowTitle(K3TemplateMessages.MiniEcoreAspectSampleNewWizard_wtitle);
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:5,代码来源:MiniEcoreAspectSampleNewWizard.java


示例16: init

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
public void init(BaseProjectWizardFields data) {
	super.init(data);
	setWindowTitle(K3TemplateMessages.MiniAspectSampleNewWizard_wtitle);
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:5,代码来源:MiniAspectSampleNewWizard.java


示例17: init

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
public void init(BaseProjectWizardFields data) {
	super.init(data);
	setWindowTitle(K3TemplateMessages.UserEcoreBasicAspectTemplate_wtitle);
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:5,代码来源:UserEcoreBasicAspectNewWizard.java


示例18: init

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
/**
 * Initializes the wizard with the data collected from the parent wizard
 * pages. The data can be used to customize the generated content.
 * 
 * @param data
 *            all the information collected in the parent wizard that can be
 *            used in configuring the generated content
 */
void init(BaseProjectWizardFields data);
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:10,代码来源:IProjectContentWizard.java


示例19: initializeFields

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
/**
 * Initializes options in the wizard page using the data provided by the
 * method parameters. Some options may depend on the user selection in the
 * common wizard pages before template page has been shown (for example,
 * plug-in ID, plug-in name etc.). This method allows options to initialize
 * in respect to these values.
 * <p>
 * The method is called before the actual plug-in has been built.
 * </p>
 * 
 * @param data
 *            plug-in data as defined in the common plug-in project wizard
 *            pages
 */
protected void initializeFields(BaseProjectWizardFields data) {
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:17,代码来源:BaseOptionTemplateSection.java


示例20: getData

import org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields; //导入依赖的package包/类
/**
 * Returns the field data passed to the wizard during the initialization.
 * 
 * @return the parent wizard field data
 */
public BaseProjectWizardFields getData() {
	return data;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:9,代码来源:AbstractNewProjectTemplateWizard.java



注:本文中的org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.BaseProjectWizardFields类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java PowerControl类代码示例发布时间:2022-05-22
下一篇:
Java AccessibleRole类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap