org.eclipse.equinox.internal.p2.ui.ProvUIActivator Java Examples
The following examples show how to use
org.eclipse.equinox.internal.p2.ui.ProvUIActivator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AutomaticUpdatesPreferencePage.java From tlaplus with MIT License | 4 votes |
public void init(IWorkbench workbench) { final ProvisioningUI ui = ProvUIActivator.getDefault().getProvisioningUI(); uri = URI.create("http://lamport.org/tlatoolbox/ci/toolboxUpdate/"); artifactRepositoryManager = ProvUI.getArtifactRepositoryManager(ui.getSession()); metadataRepositoryManager = ProvUI.getMetadataRepositoryManager(ui.getSession()); }
Example #2
Source File: UpdateDetailsPresenter.java From gwt-eclipse-plugin with Eclipse Public License 1.0 | 4 votes |
private IDialogSettings getDialogSettings() { IDialogSettings settings = ProvUIActivator.getDefault().getDialogSettings(); IDialogSettings section = settings.getSection(DIALOG_SETTINGS_SECTION); return section; }
Example #3
Source File: UpdateWizardPage.java From translationstudio8 with GNU General Public License v2.0 | 4 votes |
public void createControl(final Composite parent) { Composite composite = new Composite(parent, SWT.NONE); GridLayout gridLayout = new GridLayout(); gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; composite.setLayout(gridLayout); treeViewer = new TreeViewer(composite, SWT.BORDER | SWT.SINGLE | SWT.FULL_SELECTION); GridData data = new GridData(GridData.FILL_BOTH); Tree tree = treeViewer.getTree(); tree.setLayoutData(data); tree.setHeaderVisible(true); IUColumnConfig[] columns = getColumnConfig(); for (int i = 0; i < columns.length; i++) { TreeColumn tc = new TreeColumn(tree, SWT.LEFT, i); tc.setResizable(true); tc.setText(columns[i].getColumnTitle()); tc.setWidth(columns[i].getWidthInPixels(tree)); } contentProvider = new ProvElementContentProvider(); treeViewer.setContentProvider(contentProvider); labelProvider = new IUDetailsLabelProvider(null, getColumnConfig(), getShell()); treeViewer.setLabelProvider(labelProvider); setControl(composite); final Runnable runnable = new Runnable() { public void run() { // updateStatus(input, operation); setDrilldownElements(input, operation); treeViewer.setInput(input); } }; if (operation != null && !operation.hasResolved()) { try { getContainer().run(true, false, new IRunnableWithProgress() { public void run(IProgressMonitor monitor) { operation.resolveModal(monitor); parent.getDisplay().asyncExec(runnable); } }); } catch (Exception e) { StatusManager.getManager().handle(new Status(IStatus.ERROR, ProvUIActivator.PLUGIN_ID, e.getMessage(), e)); } } else { runnable.run(); } }
Example #4
Source File: UpdateWizardPage.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
public void createControl(final Composite parent) { Composite composite = new Composite(parent, SWT.NONE); GridLayout gridLayout = new GridLayout(); gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; composite.setLayout(gridLayout); treeViewer = new TreeViewer(composite, SWT.BORDER | SWT.SINGLE | SWT.FULL_SELECTION); GridData data = new GridData(GridData.FILL_BOTH); Tree tree = treeViewer.getTree(); tree.setLayoutData(data); tree.setHeaderVisible(true); IUColumnConfig[] columns = getColumnConfig(); for (int i = 0; i < columns.length; i++) { TreeColumn tc = new TreeColumn(tree, SWT.LEFT, i); tc.setResizable(true); tc.setText(columns[i].getColumnTitle()); tc.setWidth(columns[i].getWidthInPixels(tree)); } contentProvider = new ProvElementContentProvider(); treeViewer.setContentProvider(contentProvider); labelProvider = new IUDetailsLabelProvider(null, getColumnConfig(), getShell()); treeViewer.setLabelProvider(labelProvider); setControl(composite); final Runnable runnable = new Runnable() { public void run() { // updateStatus(input, operation); setDrilldownElements(input, operation); treeViewer.setInput(input); } }; if (operation != null && !operation.hasResolved()) { try { getContainer().run(true, false, new IRunnableWithProgress() { public void run(IProgressMonitor monitor) { operation.resolveModal(monitor); parent.getDisplay().asyncExec(runnable); } }); } catch (Exception e) { StatusManager.getManager().handle(new Status(IStatus.ERROR, ProvUIActivator.PLUGIN_ID, e.getMessage(), e)); } } else { runnable.run(); } }