当前位置: 首页>>代码示例>>Java>>正文


Java MPart.setVisible方法代码示例

本文整理汇总了Java中org.eclipse.e4.ui.model.application.ui.basic.MPart.setVisible方法的典型用法代码示例。如果您正苦于以下问题:Java MPart.setVisible方法的具体用法?Java MPart.setVisible怎么用?Java MPart.setVisible使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.e4.ui.model.application.ui.basic.MPart的用法示例。


在下文中一共展示了MPart.setVisible方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getProjectEditorWindow

import org.eclipse.e4.ui.model.application.ui.basic.MPart; //导入方法依赖的package包/类
/**
 * Returns the project window (Swing or SWT).
 *
 * @param project the project
 * @return the project window
 */
public AwbProjectEditorWindow getProjectEditorWindow(Project project) {
	
	AwbProjectEditorWindow projectEditorWindow = null;
	switch (this.getVisualisationPlatform()) {
	case EclipseFramework:
		// --- SWT editor -------------------
		MPartStack editorStack = (MPartStack) project.getEclipseEModelService().find(AppModelId.PARTSTACK_ORG_AGENTGUI_CORE_PARTSTACK_EDITOR, project.getEclipseMApplication());
		MPart editorPart = project.getEclipseEPartService().createPart(AppModelId.PARTDESCRIPTOR_ORG_AGENTGUI_CORE_PARTDESCRIPTOR_AGENTPROJECT);
		if (editorPart!=null) {
			editorPart.getTransientData().put(Project.class.getName(), project);
			editorPart.setVisible(true);
			editorStack.getChildren().add(editorPart);
			project.getEclipseEPartService().showPart(editorPart, PartState.VISIBLE);

			projectEditorWindow = (AwbProjectEditorWindow) editorPart.getObject();
		}
		break;
		
	case AgentGuiSwing:
		// --- Swing editor -----------------
		projectEditorWindow = new org.agentgui.gui.swing.project.ProjectWindow(project);
		break;
	}
	return projectEditorWindow;
}
 
开发者ID:EnFlexIT,项目名称:AgentWorkbench,代码行数:32,代码来源:UiBridge.java

示例2: cancel

import org.eclipse.e4.ui.model.application.ui.basic.MPart; //导入方法依赖的package包/类
private void cancel()
{
	deleteUnSuccessShareFolder();
	MPart ownpart = partService.findPart("ch.droptilllate.application.part.decryptedview");
	ownpart.setVisible(true);
	MPart mPart = partService.findPart("ch.droptilllate.application.part.sharepart");
	mPart.setVisible(false);

}
 
开发者ID:dev131,项目名称:DropTillLate_Application,代码行数:10,代码来源:ShareView.java

示例3: success

import org.eclipse.e4.ui.model.application.ui.basic.MPart; //导入方法依赖的package包/类
private void success() {
	ViewController.getInstance().getInitialInput();
	MPart ownpart = partService.findPart("ch.droptilllate.application.part.decryptedview");
	ownpart.setVisible(true);
	MPart mPart = partService.findPart("ch.droptilllate.application.part.sharepart");
	mPart.setVisible(false);	
}
 
开发者ID:dev131,项目名称:DropTillLate_Application,代码行数:8,代码来源:ShareView.java

示例4: cancel

import org.eclipse.e4.ui.model.application.ui.basic.MPart; //导入方法依赖的package包/类
private void cancel() {
	MPart ownpart = partService.findPart("ch.droptilllate.application.part.decryptedview");
	ownpart.setVisible(true);
	MPart mPart = partService.findPart("ch.droptilllate.application.part.Import");
	mPart.setVisible(false);	
	ShareView.getInstance().deleteUnSuccessShareFolder();
}
 
开发者ID:dev131,项目名称:DropTillLate_Application,代码行数:8,代码来源:ImportView.java

示例5: importShareFolder

import org.eclipse.e4.ui.model.application.ui.basic.MPart; //导入方法依赖的package包/类
private void importShareFolder() {
	if(text_path.getText().equals("") || text_foldername.getText().equals("") || text_password.getText().equals("")){
		new ErrorMessage(shell,"Error", "Argument Missing");
	}
	else{
		MPart ownpart = partService.findPart("ch.droptilllate.application.part.decryptedview");
		ownpart.setVisible(true);
		MPart mPart = partService.findPart("ch.droptilllate.application.part.Import");
		mPart.setVisible(false);	
		ViewController.getInstance().importFiles(text_path.getText(), text_foldername.getText(), text_password.getText());
	}
	
}
 
开发者ID:dev131,项目名称:DropTillLate_Application,代码行数:14,代码来源:ImportView.java

示例6: execute

import org.eclipse.e4.ui.model.application.ui.basic.MPart; //导入方法依赖的package包/类
@Execute
public void execute(Shell shell, EPartService partService) {

	MPart mPart = partService.findPart("ch.droptilllate.application.part.logview");
	if(mPart.isVisible()){
		mPart.setVisible(false);
	}
	else{
		mPart.setVisible(true);
	}

}
 
开发者ID:dev131,项目名称:DropTillLate_Application,代码行数:13,代码来源:LogViewHandler.java

示例7: execute

import org.eclipse.e4.ui.model.application.ui.basic.MPart; //导入方法依赖的package包/类
@Execute
public void execute(Shell shell, EPartService partService) {
	MPart ownpart = partService.findPart("ch.droptilllate.application.part.decryptedview");
	ownpart.setVisible(false);
	MPart sharePart = partService.findPart("ch.droptilllate.application.part.sharepart");
	sharePart.setVisible(false);
	MPart mPart = partService.findPart("ch.droptilllate.application.part.Import");
	mPart.setVisible(true);
	ShareView.getInstance().deleteUnSuccessShareFolder();
}
 
开发者ID:dev131,项目名称:DropTillLate_Application,代码行数:11,代码来源:ImportHandler.java

示例8: execute

import org.eclipse.e4.ui.model.application.ui.basic.MPart; //导入方法依赖的package包/类
@Execute
public void execute(Shell shell,EPartService partService) {		
	MPart ownpart = partService.findPart("ch.droptilllate.application.part.decryptedview");
	ownpart.setVisible(false);
	MPart mPart = partService.findPart("ch.droptilllate.application.part.sharepart");
	mPart.setVisible(true);		
	ViewController viewcontroller = ViewController.getInstance();
	 viewcontroller.openShareContext();
		MPart importpart = partService.findPart("ch.droptilllate.application.part.Import");
		importpart.setVisible(false);
}
 
开发者ID:dev131,项目名称:DropTillLate_Application,代码行数:12,代码来源:ShareHandler.java

示例9: execute

import org.eclipse.e4.ui.model.application.ui.basic.MPart; //导入方法依赖的package包/类
@Execute
public void execute(final EPartService partService, @Optional @Named(IServiceConstants.ACTIVE_SELECTION) final BettingSchedule schedule) {
    if (schedule != null) {
        MPart part = partService.findPart("optm.bettingschedule.part.bettingSchedule");
        part.setVisible(true);
        partService.showPart(part, PartState.VISIBLE);
    }
}
 
开发者ID:ksteuern,项目名称:optm,代码行数:9,代码来源:OpenBettingSchedule.java

示例10: startApplication

import org.eclipse.e4.ui.model.application.ui.basic.MPart; //导入方法依赖的package包/类
private void startApplication()
{
	MHandledToolItem aboutHandler = (MHandledToolItem) modelService.find("ch.droptilllate.application.handledtoolitem.about",
			application);
	aboutHandler.setVisible(true);
	MHandledToolItem exportHandler = (MHandledToolItem) modelService.find("ch.droptilllate.application.handledtoolitem.exportkeyfile",
			application);
	exportHandler.setVisible(true);

	MHandledToolItem openkeyfileHanlder = (MHandledToolItem) modelService.find("ch.droptilllate.application.handledtoolitem.openkey",
			application);
	openkeyfileHanlder.setVisible(true);
	MHandledToolItem integryHandler = (MHandledToolItem) modelService.find("ch.droptilllate.application.handledtoolitem.integrycheck",
			application);
	integryHandler.setVisible(true);

	MHandledToolItem newFolderHandler = (MHandledToolItem) modelService.find("ch.droptilllate.application.handledtoolitem.newFolder",
			application);
	newFolderHandler.setVisible(true);
	MHandledToolItem importhandler = (MHandledToolItem) modelService.find("ch.droptilllate.application.handledtoolitem.import",
			application);
	importhandler.setVisible(true);
	MHandledToolItem logviewhandler = (MHandledToolItem) modelService.find("ch.droptilllate.application.handledtoolitem.logview",
			application);
	// logviewhandler.setVisible(true);
	MPart part = partService.findPart("ch.droptilllate.application.part.decryptedview");
	part.setVisible(true);

	MPart ownpart = partService.findPart("ch.droptilllate.application.part.InitialView");
	ownpart.setVisible(false);

	ViewController.getInstance().initTree();
	ViewController.getInstance().setSharefunction(cbCloudProvider.getSelection());
	IDatabase database = new XMLDatabase();
	if (database.openTransaction("", DBSituation.LOCAL_DATABASE) != DatabaseStatus.OK)
	{
		// TODO ERROR HANDLING
	}
	List<CloudAccount> list = (List<CloudAccount>) database.getElementAll(CloudAccount.class);
	if (!list.isEmpty())
	{
		ViewController.getInstance().setSharefunction(true);
	}
}
 
开发者ID:dev131,项目名称:DropTillLate_Application,代码行数:45,代码来源:InitialView.java


注:本文中的org.eclipse.e4.ui.model.application.ui.basic.MPart.setVisible方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。