/** * Reset the properties to their default values. */ public void run() { getPropertySheet().deactivateCellEditor(); getPropertySheet().resetProperties(); } }
public int compare(Object a, Object b) { return PropertySheetSorter.this.compareCategories( ((PropertySheetCategory) a).getCategoryName(), ((PropertySheetCategory) b).getCategoryName()); } });
/** * The error message of this entry has changed. Notify all listeners of the * change. */ private void fireErrorMessageChanged() { Object[] array = getListeners(); for (Object element : array) { IPropertySheetEntryListener listener = (IPropertySheetEntryListener) element; listener.errorMessageChanged(this); } }
protected IPage createDefaultPage(PageBook book) { PropertySheetPage page = new PropertySheetPage(); initPage(page); page.createControl(book); return page; }
private void showSelectionAndDescription() { selectionUpdatePending = false; if (currentPart == null || currentSelection == null) { return; } IPropertySheetPage page = (IPropertySheetPage) getCurrentPage(); if (page != null) { page.selectionChanged(currentPart, currentSelection); } updateContentDescription(); }
/** * Returns the child entries of the given category * * @param category The category to search * * @return the children of the given category (element type * <code>IPropertySheetEntry</code>) */ private List getChildren(PropertySheetCategory category) { return getSortedEntries(getFilteredEntries(category.getChildEntries())); }
public void selectionChanged(IWorkbenchPart part, ISelection sel) { // we ignore our own selection or null selection if (part == this || sel == null) { return; } // pass the selection to the page IPropertySheetPage page = (IPropertySheetPage) getCurrentPage(); if (page != null) { page.selectionChanged(part, sel); } }
@Override protected Object getValue(Object object) { IPropertySource propertySource = propertySourceProvider .getPropertySource(object); Object value = propertySource.getPropertyValue(propertyID); IPropertySource valuePropertySource = propertySourceProvider .getPropertySource(value); if (valuePropertySource != null) { value = valuePropertySource.getEditableValue(); } return value; }
/** * The child entries of this entry have changed (children added or removed). * Notify all listeners of the change. */ private void fireChildEntriesChanged() { Object[] array = getListeners(); for (int i = 0; i < array.length; i++) { IPropertySheetEntryListener listener = (IPropertySheetEntryListener) array[i]; listener.childEntriesChanged(this); } }
/** * The values of this entry have changed. Notify all listeners of the * change. */ private void fireValueChanged() { Object[] array = getListeners(); for (Object element : array) { IPropertySheetEntryListener listener = (IPropertySheetEntryListener) element; listener.valueChanged(this); } }
@Override protected void setValue(Object object, Object value) { IPropertySource propertySource = propertySourceProvider .getPropertySource(object); propertySource.setPropertyValue(propertyID, value); } }
/** * Returns the child entries of the given category * * @param category The category to search * * @return the children of the given category (element type * <code>IPropertySheetEntry</code>) */ private List getChildren(PropertySheetCategory category) { return getSortedEntries(getFilteredEntries(category.getChildEntries())); }
/** * Reset the properties to their default values. */ @Override public void run() { getPropertySheet().deactivateCellEditor(); getPropertySheet().resetProperties(); } }
/** * The child entries of this entry have changed (children added or removed). * Notify all listeners of the change. */ private void fireChildEntriesChanged() { Object[] array = getListeners(); for (Object element : array) { IPropertySheetEntryListener listener = (IPropertySheetEntryListener) element; listener.childEntriesChanged(this); } }
@Override public int compare(Object a, Object b) { return PropertySheetSorter.this.compareCategories( ((PropertySheetCategory) a).getCategoryName(), ((PropertySheetCategory) b).getCategoryName()); } });
/** * The error message of this entry has changed. Notify all listeners of the * change. */ private void fireErrorMessageChanged() { Object[] array = getListeners(); for (int i = 0; i < array.length; i++) { IPropertySheetEntryListener listener = (IPropertySheetEntryListener) array[i]; listener.errorMessageChanged(this); } }
/** * The values of this entry have changed. Notify all listeners of the * change. */ private void fireValueChanged() { Object[] array = getListeners(); for (int i = 0; i < array.length; i++) { IPropertySheetEntryListener listener = (IPropertySheetEntryListener) array[i]; listener.valueChanged(this); } }
@Override protected void setValue(Object object, Object value) { IPropertySource propertySource = propertySourceProvider .getPropertySource(object); propertySource.setPropertyValue(propertyID, value); } }
/** * Returns the child entries of the given category * * @param category The category to search * * @return the children of the given category (element type * <code>IPropertySheetEntry</code>) */ private List<IPropertySheetEntry> getChildren(PropertySheetCategory category) { return getSortedEntries(getFilteredEntries(category.getChildEntries())); }
/** * The child entries of this entry have changed (children added or removed). * Notify all listeners of the change. */ private void fireChildEntriesChanged() { Object[] array = getListeners(); for (Object element : array) { IPropertySheetEntryListener listener = (IPropertySheetEntryListener) element; listener.childEntriesChanged(this); } }