本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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();
}
示例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());
}
}
示例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);
}
}
示例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();
}
示例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);
}
示例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);
}
}
示例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);
}
}