Presentation is loading. Please wait.

Presentation is loading. Please wait.

Textual Visualization Plug-in for Eclipse Gong Jun CCIS Northeastern Univ 02/2004.

Similar presentations


Presentation on theme: "Textual Visualization Plug-in for Eclipse Gong Jun CCIS Northeastern Univ 02/2004."— Presentation transcript:

1

2 Textual Visualization Plug-in for Eclipse Gong Jun CCIS Northeastern Univ 02/2004

3 What You Are Given A detailed project description. An extended DJ Plug-in. – Can be used to parse the Selector Language Lab exercises

4 What You Need to Do Starting from an empty Plug-in, add a syntax sensitive Selector Language Editor to it. Add traversal highlighting functionality to the Traversal Highlighting View. – From where do you get the Class Graph to be traversed and highlighted? Write your class dictionary for the Selector Language.

5 Eclipse Platform Overview The definition from the official website: – Eclipse is a kind of universal tool platform - an open extensible IDE for anything and nothing in particular. The Java compiler itself is a plug-in!!! No 1 misunderstanding about Eclipse!

6 Eclipse Platform Overview

7 Plugin.xml Plug-in Manifest file Plugin_name.jar Plug-in Eclipse core …

8 What ’ s Inside plug-in.xml Function is added to the system using a common extension model. Extension points – well-defined function points in the system that can be extended by plug-ins When a plug-in contributes an implementation for an extension point, we say that it adds an extension to the platform.

9 Example

10 Selector Language Editor A simple extension to org.eclipse.ui.texteditor Add syntax rules. Contribute buttons to Menu or Toolbar – Class Action, method run() DocumentProvider – IDocument.get() Lab exercise 18 has detailed implementation details.

11 What Views Look Like?

12 Traversal Highlighting View Extension point: – org.eclipse.ui.views Class extends ViewPart Create widgets in the view by instantiating the classes of those widgets. Only a StyledText is enough!

13 StyledText org.eclipse.swt.custom.StyledText SWT widget append(String string) setStyleRanges(StyleRange[]) StyleRange specifies various styles for some parts of the text

14 Construct DJ Class Graph Create a new class graph. – Be sure to use: edu.neu.ccs.demeter.aplib.cd.ClassGraph – ClassGraph.fromString(String s) Construct Traversal Traversal.getEdgeSets() Traversal.getNodeSets() Tricky part: Create ClassGraph from source files

15 Good Luck! The End


Download ppt "Textual Visualization Plug-in for Eclipse Gong Jun CCIS Northeastern Univ 02/2004."

Similar presentations


Ads by Google