當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。