@Override public void setInitializationData(IConfigurationElement cfig, String propertyName, Object data) { super.setInitializationData(cfig, propertyName, data); setDefaultPartName(); }
/** * Creates a new <code>GenerateActionGroup</code>. The group * requires that the selection provided by the page's selection provider * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>. * * @param page the page that owns this action group */ public GenerateBuildPathActionGroup(Page page) { this(page.getSite(), page.getSite().getSelectionProvider()); }
public ShowInContext getShowInContext() { return new ShowInContext(new FileEditorInput(file), StructuredSelection.EMPTY); } };
@Override public void init(IPageSite pageSite) { super.init(pageSite); pageSite.setSelectionProvider(this); }
@Override public ShowInContext getShowInContext() { return new ShowInContext(null, getSelectionProvider().getSelection()); } };
@Override public boolean validateDrop(Object target, int operation, TransferData transferType) { if (transferType != null && ResourceTransfer.getInstance().isSupportedType(transferType)) { return true; } return super.validateDrop(target, operation, transferType); }
@Override public void dispose() { super.dispose(); fMultiPageEditor.removePageChangedListener(fPageChangedListener); } }
@Override public void setActiveEditor(IEditorPart part) { IEditorPart activeNestedEditor = null; if (part instanceof MultiPageEditorPart) { activeNestedEditor = ((MultiPageEditorPart) part).getActiveEditor(); } setActivePage(activeNestedEditor); }
private void forwardSelection(SelectionChangedEvent event) { getSelectionProvider().selectionChanged(event); getSelectionProvider().postSelectionChanged(event); }
@Override public void setFocus() { super.setFocus(); updateGradient(getActiveEditor()); }
/** * Activates the given nested editor. * * @param part the nested editor * @since 3.5 */ @Override public void activateEditor(IEditorPart part) { IEditorPart oldEditor = getActiveEditor(); super.activateEditor(part); updateGradient(oldEditor); }
@Override protected void setContentDescription(String description) { if (compatibilityTitleListener != null) { removePropertyListener(compatibilityTitleListener); compatibilityTitleListener = null; } super.setContentDescription(description); }
/** * Creates a new empty pagebook. * * @param parent the parent composite * @param style the SWT style bits */ public PageBook(Composite parent, int style) { super(parent, style); setLayout(new PageBookLayout()); }
@Override public void setInitializationData(IConfigurationElement cfig, String propertyName, Object data) { super.setInitializationData(cfig, propertyName, data); setDefaultContentDescription(); }
@Override protected void setContentDescription(String description) { if (compatibilityTitleListener != null) { removePropertyListener(compatibilityTitleListener); compatibilityTitleListener = null; } super.setContentDescription(description); }
@Override protected void setPartName(String partName) { if (compatibilityTitleListener != null) { removePropertyListener(compatibilityTitleListener); compatibilityTitleListener = null; } super.setPartName(partName); }
public boolean validateDrop(Object target, int operation, TransferData transferType) { if (transferType != null && ResourceTransfer.getInstance().isSupportedType(transferType)) { return true; } return super.validateDrop(target, operation, transferType); }
/** * Creates a new <code>GenerateActionGroup</code>. The group * requires that the selection provided by the page's selection provider * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>. * * @param page the page that owns this action group */ public GenerateBuildPathActionGroup(Page page) { this(page.getSite(), page.getSite().getSelectionProvider()); }