Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [mylar-dev] [Mantis] How to add Text Box to Task Editor

Good to hear. Please consider adding this to the debugging tips in case
others aren't familiar with -clean:

http://wiki.eclipse.org/index.php/Mylar_Contributor_Reference#Debugging

Mik

> -----Original Message-----
> From: mylar-dev-bounces@xxxxxxxxxxx [mailto:mylar-dev-
> bounces@xxxxxxxxxxx] On Behalf Of Chris Hane
> Sent: Tuesday, February 27, 2007 7:16 PM
> To: Mylar developer discussions
> Subject: Re: [mylar-dev] [Mantis] How to add Text Box to Task Editor
> 
> never mind.  I forgot to restart eclipse with -clean specified.
> 
> Thanks for looking,
> Chris....
> 
> Chris Hane wrote:
> >
> > I am trying to add a text box (like the comment editor) to the
> > attributes section of the Task.  When I add the following method to
> the
> > Mantis Editor I get the exception below saying a class can not be
> found
> > (java.lang.NoClassDefFoundError: org/eclipse/jface/text/TextViewer)
> >
> > @Override
> > protected void createCustomAttributeLayout(Composite composite){
> >    //put Additional Information and Steps to Reproduce here
> >
> >    stepsToReproduceViewer = addTextEditor(repository, composite,
> >
> getRepositoryTaskData().getNewComment(),
> >                                true, SWT.FLAT | SWT.MULTI | SWT.WRAP
> |
> >                                SWT.V_SCROLL);
> >    stepsToReproduceViewer.setEditable(true);
> > }
> >
> >
> > My manifest looks like the following.  What else besides
> > org.eclipse.jface.text do I need to add?
> >
> > Manifest-Version: 1.0
> > Bundle-ManifestVersion: 2
> > Bundle-Name: Ui Plug-in
> > Bundle-SymbolicName: com.itsolut.mantis.ui;singleton:=true
> > Bundle-Version: 1.0.0
> > Bundle-Activator: com.itsolut.mantis.ui.MantisUIPlugin
> > Bundle-Vendor: ITSOLUT
> > Bundle-Localization: plugin
> > Require-Bundle: org.eclipse.ui,
> >  org.eclipse.ui.forms,
> >  org.eclipse.jface.text,
> >  org.eclipse.core.runtime,
> >  org.eclipse.mylar.context.core,
> >  org.eclipse.mylar.tasks.ui,
> >  org.eclipse.mylar.tasks.core,
> >  org.eclipse.search,
> >  com.itsolut.mantis.core,
> >  org.eclipse.jface.text
> > Eclipse-LazyStart: true
> > Export-Package: com.itsolut.mantis.ui,
> >  com.itsolut.mantis.ui.editor,
> >  com.itsolut.mantis.ui.wizard
> > Bundle-RequiredExecutionEnvironment: J2SE-1.5
> >
> >
> > java.lang.NoClassDefFoundError: org/eclipse/jface/text/TextViewer
> > at
> >
> com.itsolut.mantis.ui.editor.MantisTaskEditor.createCustomAttributeLayo
> ut(MantisTaskEditor.java:202)
> >
> > at
> >
> org.eclipse.mylar.tasks.ui.editors.AbstractRepositoryTaskEditor.createF
> ormContent(AbstractRepositoryTaskEditor.java:561)
> >
> > at org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:151)
> > at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
> > at
> >
> org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:14
> 9)
> > at
> >
> org.eclipse.mylar.tasks.ui.editors.TaskEditor.addPages(TaskEditor.java:
> 396)
> > at
> org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:142)
> > at
> >
> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEdit
> orPart.java:276)
> >
> > at
> >
> org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReferenc
> e.java:596)
> >
> > at
> >
> org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java
> :372)
> >
> > at
> >
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartRef
> erence.java:566)
> >
> > at
> >
> org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:
> 214)
> > at
> >
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPa
> ge.java:2595)
> >
> > at
> >
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java
> :2528)
> >
> > at
> org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520
> )
> > at
> org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
> > at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
> > at
> >
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:250
> 0)
> > at
> >
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:247
> 7)
> > at
> org.eclipse.mylar.tasks.ui.TasksUiUtil.openEditor(TasksUiUtil.java:283)
> > at
> org.eclipse.mylar.tasks.ui.TasksUiUtil.openEditor(TasksUiUtil.java:276)
> > at
> >
> org.eclipse.mylar.tasks.ui.TasksUiUtil.refreshAndOpenTaskListElement(Ta
> sksUiUtil.java:215)
> >
> > at
> >
> org.eclipse.mylar.internal.tasks.ui.actions.OpenTaskListElementAction.r
> un(OpenTaskListElementAction.java:43)
> >
> > at
> >
> org.eclipse.mylar.internal.tasks.ui.views.TaskListView$11.open(TaskList
> View.java:1189)
> >
> > at
> >
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:
> 817)
> > at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> > at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
> > at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
> > at
> >
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.ja
> va:815)
> >
> > at
> >
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.
> java:1069)
> >
> > at
> >
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewe
> r.java:1168)
> >
> > at
> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249
> )
> > at
> org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243)
> > at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283
> )
> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> > at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
> > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
> > at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
> > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> > at
> >
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
> 419)
> > at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> > at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
> > at
> >
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActiv
> ator.java:78)
> >
> > at
> >
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplica
> tion(EclipseAppLauncher.java:92)
> >
> > at
> >
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ecli
> pseAppLauncher.java:68)
> >
> > at
> >
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java
> :400)
> >
> > at
> >
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java
> :177)
> >
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
> > at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> > at org.eclipse.core.launcher.Main.run(Main.java:977)
> > at org.eclipse.core.launcher.Main.main(Main.java:952)
> > _______________________________________________
> > mylar-dev mailing list
> > mylar-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/mylar-dev
> >
> _______________________________________________
> mylar-dev mailing list
> mylar-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/mylar-dev



Back to the top