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