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


Java PartInitException.printStackTrace方法代码示例

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


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

示例1: addPages

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
protected void addPages() {
    try {
        _MainPage = new ZooKeeperConnectionModelMainFormPage(this);
        addPage(_MainPage);

        _ServersPage = new ZooKeeperConnectionModelServersFormPage(this);
        addPage(_ServersPage);

        _AuthenticationPage = new ZooKeeperConnectionModelAuthenticationFormPage(this);
        addPage(_AuthenticationPage);
    }
    catch (PartInitException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:18,代码来源:ZooKeeperConnectionModelFormEditor.java

示例2: addPages

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
protected void addPages() {

    try {
        _DataZnodeFormPage = new ZnodeModelDataFormPage(this);
        addPage(_DataZnodeFormPage);

        if (!getModel().getData().isEphemeral()) {
            _ChildrenZnodeFormPage = new ZnodeModelChildrenFormPage(this);
            addPage(_ChildrenZnodeFormPage);
        }

        _AclZnodeFormPage = new ZnodeModelAclFormPage(this);
        addPage(_AclZnodeFormPage);

        _StatZnodeFormPage = new ZnodeModelStatFormPage(this);
        addPage(_StatZnodeFormPage);
    }
    catch (PartInitException e) {
        // TODO: Log
        e.printStackTrace();
    }

}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:25,代码来源:ZnodeModelFormEditor.java

示例3: updateDomainsPage

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
private void updateDomainsPage() {
    
    if (getModel().getData().isConnected()) {            
        if (_DomainsPage == null) {
            _DomainsPage = new JmxConnectionModelDomainsFormPage(this);
            try {
                addPage(_DomainsPage);
            }
            catch (PartInitException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }            
    }   
    else if (_DomainsPage != null && getPageCount() > 1) {
        removePage(1);
        _DomainsPage.dispose();
        _DomainsPage = null;
    }
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:21,代码来源:JmxConnectionModelFormEditor.java

示例4: getOpenEditorOfMarker

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
/**
 * Note: it compares marker's resource file name and open editors' file name.
 *
 * @param marker
 * @return if marker's editor is open, return editor, else return null
 */
public static IEditorPart getOpenEditorOfMarker(final IMarker marker) {
  final IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
  for (final IWorkbenchWindow iWorkbenchWindow : windows) {
    final IWorkbenchPage[] pages = iWorkbenchWindow.getPages();
    for (final IWorkbenchPage iWorkbenchPage : pages) {
      final IEditorReference[] editors = iWorkbenchPage.getEditorReferences();
      for (final IEditorReference iEditorReference : editors) {
        try {
          if (iEditorReference instanceof IFileEditorInput) {
            final IFileEditorInput input = (IFileEditorInput) iEditorReference.getEditorInput();
            final IFile file = input.getFile();
            // TODO Caused by: java.lang.NullPointerException when delete marker on ecore editor.
            if (file.getFullPath().equals(marker.getResource().getFullPath())) {
              return iEditorReference.getEditor(false);
            }
          }
        } catch (final PartInitException e) {
          e.printStackTrace();
        }
      }
    }
  }
  return null;
}
 
开发者ID:ModelWriter,项目名称:Tarski,代码行数:31,代码来源:MarkerFactory.java

示例5: addPages

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
protected void addPages() {
	try {
		this.xmlEditor=new StructuredTextEditor();
		graphicalEditorPage=new GraphicalEditorPage(xmlEditor);
		this.addPage(0, graphicalEditorPage,this.getEditorInput());
		this.setPageText(0, "流程图");
		this.addPage(1, xmlEditor,this.getEditorInput());
		deploymentPage=new DeploymentPage(this,graphicalEditorPage.getGraphicalViewer(),"部署");
		this.addPage(2, deploymentPage);
		this.setPageText(1, "源码");
		this.setActivePage(0);
		this.setPartName(this.getEditorInput().getName());
	} catch (PartInitException e) {
		e.printStackTrace();
	}
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:18,代码来源:Jbpm4Designer.java

示例6: showAttributeView

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
private AttributeView showAttributeView() {
	IViewPart view = null;
	try {
		view = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(AttributeView.ID);
	} catch (PartInitException e) {
		e.printStackTrace();
		return null;
	}
	if (view instanceof AttributeView) {
		return (AttributeView) view;
	}
	return null;
}
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:14,代码来源:AttributeViewServiceImpl.java

示例7: addPages

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
protected void addPages() {
    try {
        _Page = new ZooKeeperServerModelFormPage(this);
        addPage(_Page);
    }
    catch (PartInitException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:12,代码来源:ZooKeeperServerModelFormEditor.java

示例8: addPages

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
protected void addPages() {
    MBeanOperationModelMainFormPage page1 = new MBeanOperationModelMainFormPage(this);
    try {
        addPage(page1);
    }
    catch (PartInitException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:12,代码来源:MBeanOperationModelFormEditor.java

示例9: addPages

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
    protected void addPages() {
        try {

            MBeanModel model = getModel();

            MBeanModelMainFormPage page1 = new MBeanModelMainFormPage(this);
            addPage(page1);

            Set<String> attributeNames = model.getAttributeNames();
            int attributeCount = (attributeNames != null) ? attributeNames.size() : 0;

            Set<String> operationNames = model.getOperationNames();
            int operationCount = (operationNames != null) ? operationNames.size() : 0;

//            if (attributeCount > 0 || operationCount > 0) {
//                MBeanModelJmxDocFormPage page2 = new MBeanModelJmxDocFormPage(this);
//                addPage(page2);
//            }

            if (attributeCount > 0) {
                MBeanModelAttributesFormPage page3 = new MBeanModelAttributesFormPage(this);
                addPage(page3);
            }

            if (operationCount > 0) {
                MBeanModelOperationsFormPage page4 = new MBeanModelOperationsFormPage(this);
                addPage(page4);
            }
        }
        catch (PartInitException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:36,代码来源:MBeanModelFormEditor.java

示例10: addPages

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
protected void addPages() {
    MBeanAttributeModelMainFormPage page1 = new MBeanAttributeModelMainFormPage(this);
    try {
        addPage(page1);
    }
    catch (PartInitException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:12,代码来源:MBeanAttributeModelFormEditor.java

示例11: addPages

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
protected void addPages() {
    try {
        _MainPage = new JmxConnectionModelMainFormPage(this);
        addPage(_MainPage);

        updateDomainsPage();
    }
    catch (PartInitException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
 
开发者ID:baloise,项目名称:eZooKeeper,代码行数:14,代码来源:JmxConnectionModelFormEditor.java

示例12: performRequest

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
public void performRequest(Request req) {
	if (req.getType().equals(RequestConstants.REQ_OPEN)) {
		try {
			IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
			page.showView(IPageLayout.ID_PROP_SHEET);
		} catch (PartInitException e) {
			e.printStackTrace();
		}
	}
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:12,代码来源:AppAbstractEditPart.java

示例13: execute

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
	try {
		PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(SchemaRegistryView.ID);
	} catch (PartInitException e) {
		e.printStackTrace();
	}
	return null;
}
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:10,代码来源:ShowSchemaRegistryView.java

示例14: run

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
public void run() {
	_viewPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(_viewId);
	if (_viewPart == null || _forceFocus) 
	{
		try {
			_viewPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(_viewId);
		} catch (PartInitException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:14,代码来源:ViewHelper.java

示例15: createPages

import org.eclipse.ui.PartInitException; //导入方法依赖的package包/类
@Override
protected void createPages() {
  this.kodKodEditor = new KodKodEditor();
  RelationModelEditor.animationEditor = new Composite(this.getContainer(), SWT.EMBEDDED);
  RelationModelEditor.frame = null;

  try {
    int pageIndex = this.addPage(this.kodKodEditor, this.getEditorInput());
    this.setPageText(pageIndex, "Specification");
    pageIndex = this.addPage(RelationModelEditor.animationEditor);
    this.setPageText(pageIndex, "Manager");
  } catch (final PartInitException e) {
    e.printStackTrace();
  }
}
 
开发者ID:ModelWriter,项目名称:Tarski,代码行数:16,代码来源:RelationModelEditor.java


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