本文整理匯總了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();
}
}