|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.cmpware.ide.views.EasyText
public class EasyText
This describes the Easy Text interface.
Copyright (c) 2004 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
static java.lang.String |
copyright
Copyright string |
protected int |
currentLine
The current line |
protected org.eclipse.swt.graphics.Font |
font
The font |
protected org.eclipse.swt.widgets.Composite |
parent
The parent widget |
protected org.eclipse.swt.custom.StyledText |
text
The Styled Text Widget |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
EasyText()
|
|
| Method Summary | |
|---|---|
void |
addAction(org.eclipse.jface.action.Action a)
This method adds an action to the text View. |
void |
controlMoved(org.eclipse.swt.events.ControlEvent e)
|
void |
controlResized(org.eclipse.swt.events.ControlEvent e)
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
void |
dispose()
|
void |
handleEvent(int eventType)
This method is called upon receipt of an event. |
void |
resize()
This should be called whenever the size of the window or the content changes. |
void |
setFocus()
|
void |
setFont(java.lang.String name,
int points,
int type)
This method sets the font characteristics. |
void |
setTextColor(org.eclipse.swt.graphics.RGB textRGB)
This method sets the text color. |
void |
setTextProvider(ITextProvider textProvider)
This method sets the Easy Text Model for this class. |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
|
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent e)
|
| Methods inherited from class org.eclipse.ui.part.ViewPart |
|---|
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
public static final java.lang.String copyright
protected org.eclipse.swt.widgets.Composite parent
protected org.eclipse.swt.custom.StyledText text
protected int currentLine
protected org.eclipse.swt.graphics.Font font
| Constructor Detail |
|---|
public EasyText()
| Method Detail |
|---|
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartpublic void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.WorkbenchPartpublic void setTextProvider(ITextProvider textProvider)
textProvider - The Easy Text provider for this class.public void addAction(org.eclipse.jface.action.Action a)
a - The Action.public void setTextColor(org.eclipse.swt.graphics.RGB textRGB)
textRGB - The text color.
public void setFont(java.lang.String name,
int points,
int type)
name - The font name (i.e. "Courier")points - The font size in points.type - The font type (SWT.NORMAL, SWT.BOLD,
SWT.ITALIC)public void resize()
public void handleEvent(int eventType)
IListener
handleEvent in interface IListenereventType - a code giving the event type.public void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPartpublic void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerpublic void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListenerpublic void controlMoved(org.eclipse.swt.events.ControlEvent e)
controlMoved in interface org.eclipse.swt.events.ControlListenerpublic void controlResized(org.eclipse.swt.events.ControlEvent e)
controlResized in interface org.eclipse.swt.events.ControlListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||