Project

General

Profile

Feature #676

Advanced features for glossary

Added by Anonymous over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
02/23/2012
Due date:
% Done:

50%

Estimated time:

Description

- Highlighting also in the scenarios and MSC
- marking a word and right-clicking it gives the possibility to create a new entry in the glossary

History

#1 Updated by Anonymous over 8 years ago

Further idea was also an autocomplete functionality

#2 Updated by Anonymous over 8 years ago

Idea regarding text highlighting etc. in tables (for scenarios):
It is possible to put custom controls into table cells (see http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet126.java)
Therefore a solution could be to integrate SourceViewer components into the table, like this:

editor = new TableEditor (table);
SourceViewer sourceViewer = new SourceViewer(table, null, SWT.WRAP | SWT.MULTI);
sourceViewer.setDocument(new Document());
sourceViewer.getDocument().set("Hello");
editor.grabHorizontal = true;
editor.setEditor(sourceViewer.getControl(), items[i], 1);

Of course the databindings might have to be adjusted then.

#3 Updated by Anonymous over 8 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

Added auto-complete
Added right click functionality

#4 Updated by Anonymous over 8 years ago

  • Assignee set to Anonymous

Test auto-complete: after auto-completion an out-of-memory-error occures:

java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Unknown Source)
at org.eclipse.jface.text.contentassist.ContentAssistant$AutoAssistListener.start(ContentAssistant.java:264)
at org.eclipse.jface.text.contentassist.ContentAssistant$AutoAssistListener.keyPressed(ContentAssistant.java:346)
at org.eclipse.jface.text.contentassist.ContentAssistant$AutoAssistListener.verifyKey(ContentAssistant.java:353)
at org.eclipse.jface.text.TextViewer$VerifyKeyListenersManager.verifyKey(TextViewer.java:491)
at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:65)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5936)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5635)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1509)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2531)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.fortiss.af3.rcp.application.AF3Application.start(AF3Application.java:47)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

#5 Updated by Anonymous over 8 years ago

One additional thing for creating a word when right-clicking: please catch exception when no glossary is created yet and give an error message.

#6 Updated by Anonymous over 8 years ago

OutOfMemoryError could not be reproduced so far

For right-click functionality: When no glossary exists yet now a new glossary is created

#7 Updated by Anonymous over 8 years ago

  • Assignee changed from Anonymous to Anonymous

#8 Updated by Anonymous over 8 years ago

  • Project changed from MIRA - RE for AF3 to AF3 Phoenix

#9 Updated by Anonymous over 8 years ago

  • Status changed from In Progress to Feedback
  • Target version set to Phoenx 2.1 RC3

#10 Updated by Anonymous over 8 years ago

Test:

Right-click functionality: "When no glossary exists yet now a new glossary is created" still yields an exception:
"Could not open the editor: assertion failed: "
Glossary is created.

Memory exception after auto-complete disappeared.

#11 Updated by Anonymous over 8 years ago

  • Assignee changed from Anonymous to Anonymous

#12 Updated by Anonymous over 8 years ago

fixed exception
(sorry I forgot to test this again after I did some refactoring)

#13 Updated by Anonymous over 8 years ago

  • Target version changed from Phoenx 2.1 RC3 to Phoenix 2.1 RC4

#14 Updated by Anonymous over 8 years ago

  • Assignee changed from Anonymous to Anonymous

#15 Updated by Anonymous over 8 years ago

  • Status changed from Feedback to Closed

test ok

Also available in: Atom PDF