|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.views.properties.tabbed.AbstractPropertySection
org.eclipse.gmf.runtime.lite.properties.ColorsAndFontsPropertySection
public class ColorsAndFontsPropertySection
Property section that displays properties for views' font and colors.
Nested Class Summary | |
---|---|
protected static class |
ColorsAndFontsPropertySection.ColorOverlayImageDescriptor
Image descriptor which draws a uniform color underneath the lower portion of the given image. |
protected static interface |
ColorsAndFontsPropertySection.IValueConverter<E>
|
Field Summary | |
---|---|
protected org.eclipse.swt.widgets.Button |
fillColorButton
|
protected org.eclipse.swt.graphics.RGB |
fillColorRGB
|
protected org.eclipse.swt.widgets.Button |
fontColorButton
|
protected org.eclipse.swt.graphics.RGB |
fontColorRGB
|
protected org.eclipse.swt.custom.CCombo |
fontFamilyCombo
|
protected org.eclipse.swt.widgets.Button |
lineColorButton
|
protected org.eclipse.swt.graphics.RGB |
lineColorRGB
|
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
---|
STANDARD_LABEL_WIDTH |
Constructor Summary | |
---|---|
ColorsAndFontsPropertySection()
|
Method Summary | ||
---|---|---|
void |
aboutToBeHidden()
|
|
void |
aboutToBeShown()
|
|
protected void |
change(org.eclipse.swt.widgets.Button button,
org.eclipse.emf.ecore.EStructuralFeature feature,
ColorsAndFontsPropertySection.IValueConverter<Boolean> converter,
String commandName)
|
|
protected void |
change(org.eclipse.swt.custom.CCombo combo,
org.eclipse.emf.ecore.EStructuralFeature feature,
ColorsAndFontsPropertySection.IValueConverter<String> converter,
String commandName)
|
|
protected void |
changeColor(org.eclipse.swt.widgets.Button button,
org.eclipse.swt.graphics.RGB currentRGB,
org.eclipse.emf.ecore.EStructuralFeature feature,
String commandName)
|
|
void |
createControls(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage tabbedPropertySheetPage)
|
|
protected org.eclipse.swt.widgets.Group |
createFontsAndColorsGroups(org.eclipse.swt.widgets.Composite parent)
Create fonts and colors group |
|
protected org.eclipse.swt.widgets.Composite |
createFontsGroup(org.eclipse.swt.widgets.Composite parent)
Create font tool bar group |
|
void |
dispose()
|
|
protected void |
disposeImageFor(org.eclipse.swt.widgets.Button button,
String key)
Disposes the image associated with the given button iff it is not a standard image. |
|
protected void |
executeChange(String commandName,
org.eclipse.emf.ecore.EStructuralFeature feature,
Object value)
Creates and executes the command that updates the styles of the given views |
|
protected org.eclipse.emf.transaction.ResourceSetListener |
getListener()
|
|
protected
|
getStructuralFeatureValue(org.eclipse.emf.ecore.EStructuralFeature feature,
ColorsAndFontsPropertySection.IValueConverter<E> converter)
|
|
protected boolean |
hasStyles(org.eclipse.emf.ecore.EClass styleClass)
|
|
void |
refresh()
|
|
protected void |
refresh(org.eclipse.swt.widgets.Button button,
boolean isReadOnly,
org.eclipse.emf.ecore.EStructuralFeature feature)
|
|
protected void |
refresh(org.eclipse.swt.custom.CCombo combo,
boolean isReadOnly,
org.eclipse.emf.ecore.EStructuralFeature feature,
ColorsAndFontsPropertySection.IValueConverter<String> converter)
|
|
protected org.eclipse.swt.graphics.RGB |
refreshColor(org.eclipse.swt.widgets.Button button,
boolean isReadOnly,
org.eclipse.emf.ecore.EStructuralFeature feature,
String baseImageKey)
|
|
void |
setInput(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
|
|
protected Object |
transformSelection(Object selected)
Allows the subclasses to unwrap or otherwise modify the contents of the selection. |
Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
---|
getMinimumHeight, getPart, getSelection, getWidgetFactory, shouldUseExtraSpace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.eclipse.swt.custom.CCombo fontFamilyCombo
protected org.eclipse.swt.widgets.Button fontColorButton
protected org.eclipse.swt.widgets.Button lineColorButton
protected org.eclipse.swt.widgets.Button fillColorButton
protected org.eclipse.swt.graphics.RGB fontColorRGB
protected org.eclipse.swt.graphics.RGB lineColorRGB
protected org.eclipse.swt.graphics.RGB fillColorRGB
Constructor Detail |
---|
public ColorsAndFontsPropertySection()
Method Detail |
---|
public void setInput(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
setInput
in interface org.eclipse.ui.views.properties.tabbed.ISection
setInput
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
protected Object transformSelection(Object selected)
null
result may be returned,
in this case it will be ignored.
By default, the passed object is returned untouched.
public void aboutToBeShown()
aboutToBeShown
in interface org.eclipse.ui.views.properties.tabbed.ISection
aboutToBeShown
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
public void aboutToBeHidden()
aboutToBeHidden
in interface org.eclipse.ui.views.properties.tabbed.ISection
aboutToBeHidden
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
protected final org.eclipse.emf.transaction.ResourceSetListener getListener()
public void dispose()
dispose
in interface org.eclipse.ui.views.properties.tabbed.ISection
dispose
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
protected final void disposeImageFor(org.eclipse.swt.widgets.Button button, String key)
button
- key
- public void refresh()
refresh
in interface org.eclipse.ui.views.properties.tabbed.ISection
refresh
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
protected void refresh(org.eclipse.swt.custom.CCombo combo, boolean isReadOnly, org.eclipse.emf.ecore.EStructuralFeature feature, ColorsAndFontsPropertySection.IValueConverter<String> converter)
protected void refresh(org.eclipse.swt.widgets.Button button, boolean isReadOnly, org.eclipse.emf.ecore.EStructuralFeature feature)
protected org.eclipse.swt.graphics.RGB refreshColor(org.eclipse.swt.widgets.Button button, boolean isReadOnly, org.eclipse.emf.ecore.EStructuralFeature feature, String baseImageKey)
protected final boolean hasStyles(org.eclipse.emf.ecore.EClass styleClass)
protected <E> E getStructuralFeatureValue(org.eclipse.emf.ecore.EStructuralFeature feature, ColorsAndFontsPropertySection.IValueConverter<E> converter)
public void createControls(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage tabbedPropertySheetPage)
createControls
in interface org.eclipse.ui.views.properties.tabbed.ISection
createControls
in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
protected org.eclipse.swt.widgets.Group createFontsAndColorsGroups(org.eclipse.swt.widgets.Composite parent)
parent
- - parent compositeprotected org.eclipse.swt.widgets.Composite createFontsGroup(org.eclipse.swt.widgets.Composite parent)
parent
- - parent composite
protected void change(org.eclipse.swt.custom.CCombo combo, org.eclipse.emf.ecore.EStructuralFeature feature, ColorsAndFontsPropertySection.IValueConverter<String> converter, String commandName)
protected void change(org.eclipse.swt.widgets.Button button, org.eclipse.emf.ecore.EStructuralFeature feature, ColorsAndFontsPropertySection.IValueConverter<Boolean> converter, String commandName)
protected void changeColor(org.eclipse.swt.widgets.Button button, org.eclipse.swt.graphics.RGB currentRGB, org.eclipse.emf.ecore.EStructuralFeature feature, String commandName)
protected void executeChange(String commandName, org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |