Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/CSS.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ They also show pseudo selectors which can be used to choose styling based on wid
| setMaximized(boolean) | swt-maximized | CTabFolder { swt-maximized: true } |
| setMinimized(boolean) | swt-minimized | CTabFolder { swt-minimized: true } |
| setMaximizeVisible(boolean) | swt-maximize-visible | CTabFolder { swt-maximize-visible: true } |
| setMinimizeVisible(boolean) | swt-minimize-visible | CTabFolder {swt- minimize-visible: true } |
| setMinimizeVisible(boolean) | swt-minimize-visible | CTabFolder {swt-minimize-visible: true } |
| setMRUVisible(boolean) | swt-mru-visible | CTabFolder { swt-mru-visible: true } |
| setSimple(boolean) | swt-simple | CTabFolder { swt-simple: true } |
| setSingle(boolean) | swt-single | CTabFolder { swt-single: true } |
Expand Down
24 changes: 12 additions & 12 deletions docs/Command_Core_Expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The <with/> element can be used to change which variable the child expression el
Variables and the Command Framework
===================================

The variables used for command framework evaluation are listed in [ISources.java](https://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/bundles/org.eclipse.ui.workbench/Eclipse%20UI/org/eclipse/ui/ISources.java)
The variables used for command framework evaluation are listed in [ISources.java](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/ISources.java)

Some of the variables may not be set, depending on the current application context when they are evaluated.

Expand All @@ -42,7 +42,7 @@ Some of the variables may not be set, depending on the current application conte
| activeMenu | A `java.util.Collection` of `java.lang.String` | This is the list of IDs of the showing context menu. Examples are like #TextEditorRuler or a part ID. Most commonly used with <iterate/>, <count/>, and <test/> with a combined `org.eclipse.common.expressions.PropertyTester`. | 3.2 |
| activeMenuSelection | `org.eclipse.jface.viewers.ISelection` | This is a selection that is available while a context menu is showing. It is the selection from the selection provider used to register the context menu, usually from `getSite().registerContextMenu(*)`. It is usually the same as the `selection`variable, but not always. This is more for legacy compatibility. | 3.3 |
| activeMenuEditorInput | `org.eclipse.jface.viewers.ISelection` | This is a selection that is available while a context menu is showing. It is the selection from the editor input, usually if includeEditorInput was set to `true` during `getEditorSite().registerContextMenu(*)`. This is more for legacy compatibility. | 3.3 |
| activeFocusControl | `org.eclipse.swt.widgets.Control` | A control that has focus and has been registered with the [IFocusService](https://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/bundles/org.eclipse.ui.workbench/Eclipse%20UI/org/eclipse/ui/swt/IFocusService.java). | 3.3 |
| activeFocusControl | `org.eclipse.swt.widgets.Control` | A control that has focus and has been registered with the [IFocusService](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/swt/IFocusService.java). | 3.3 |
| activeFocusControlId | `java.lang.String` | The ID of a control that has focus and has been registered with the `org.eclipse.ui.swt.IFocusService`. | 3.3 |

Note: All these variables can be used with <test/> and a `org.eclipse.common.expressions.PropertyTester`.
Expand All @@ -60,13 +60,13 @@ For example, to test an IResource name the property would be `org.eclipse.core.r
||||
| --- | --- | --- |
| **Namespace** | **Type** | **Implementation** |
| org.eclipse.core.runtime | `org.eclipse.core.runtime.Platform` | [PlatformPropertyTester.java](https://git.eclipse.org/c/platform/eclipse.platform.runtime.git/tree/bundles/org.eclipse.core.expressions/src/org/eclipse/core/internal/expressions/propertytester/PlatformPropertyTester.java) |
| org.eclipse.core.runtime | `org.eclipse.core.runtime.Platform` | [PlatformPropertyTester.java](https://github.com/eclipse-platform/eclipse.platform.runtime/blob/master/bundles/org.eclipse.core.expressions/src/org/eclipse/core/internal/expressions/propertytester/PlatformPropertyTester.java) |
| **Property** | **Description**| |
| product | Test the id of the currently active product. ||
| isBundleInstalled | Test if a given bundle is installed in the running environment. Use the args attribute to pass in the bundle id. ||
| | | |
| **Namespace**| **Type**| **Implementation** |
| org.eclipse.core.resources | `org.eclipse.core.resources.IResource` | [ResourcePropertyTester.java](https://git.eclipse.org/c/platform/eclipse.platform.resources.git/tree/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/propertytester/ResourcePropertyTester.java) |
| org.eclipse.core.resources | `org.eclipse.core.resources.IResource` | [ResourcePropertyTester.java](https://github.com/eclipse-platform/eclipse.platform.resources/blob/master/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/propertytester/ResourcePropertyTester.java) |
| **Property** | **Description** | |
| name | A property indicating the file name (value `"name"`). "*" and "?" wild cards are supported. | |
| path | A property indicating the file path (value `"path"`). "*" and "?" wild cards are supported. | |
Expand All @@ -79,28 +79,28 @@ For example, to test an IResource name the property would be `org.eclipse.core.r
| projectSessionProperty | A property indicating a session property on the selected resource's project. (value `"projectSessionProperty"`). If two arguments are given, this treats the first as the property name, and the second as the expected property value. If only one argument (or just the expected value) is given, this treats it as the property name, and simply tests for existence of the property on the resource. | |
| | | |
| **Namespace** | **Type** | **Implementation** |
| org.eclipse.core.resources | `org.eclipse.core.resources.IFile` | [FilePropertyTester.java](https://git.eclipse.org/c/platform/eclipse.platform.resources.git/tree/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/propertytester/FilePropertyTester.java) |
| org.eclipse.core.resources | `org.eclipse.core.resources.IFile` | [FilePropertyTester.java](https://github.com/eclipse-platform/eclipse.platform.resources/blob/master/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/propertytester/FilePropertyTester.java) |
| **Property** | **Description** | |
| contentTypeId | A property indicating that we are looking to verify that the file matches the content type matching the given identifier. The identifier is provided as the expected value. | |
| | | |
| **Namespace** | **Type** | **Implementation** |
| org.eclipse.core.resources | `org.eclipse.core.resources.IProject` | [ProjectPropertyTester.java](https://git.eclipse.org/c/platform/eclipse.platform.resources.git/tree/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/propertytester/ProjectPropertyTester.java) |
| org.eclipse.core.resources | `org.eclipse.core.resources.IProject` | [ProjectPropertyTester.java](https://github.com/eclipse-platform/eclipse.platform.resources/blob/master/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/propertytester/ProjectPropertyTester.java) |
| **Property**| **Description** | |
| open | A property indicating whether the project is open (value `"open"`). | |
| | | |
| **Namespace** | **Type** | **Implementation** |
| org.eclipse.core.resources | `org.eclipse.core.resources.mapping.ResourceMapping` | [ResourceMappingPropertyTester.java](https://git.eclipse.org/c/platform/eclipse.platform.resources.git/tree/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/propertytester/ResourceMappingPropertyTester.java) |
| org.eclipse.core.resources | `org.eclipse.core.resources.mapping.ResourceMapping` | [ResourceMappingPropertyTester.java](https://github.com/eclipse-platform/eclipse.platform.resources/blob/master/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/propertytester/ResourceMappingPropertyTester.java) |
| **Property** | **Description** | |
| projectPersistentProperty | A property indicating a persistent property on the selected resource's project. (value `"projectPersistentProperty"`). If two arguments are given, this treats the first as the property name, and the second as the expected property value. If only one argument (or just the expected value) is given, this treats it as the property name, and simply tests for existence of the property on the resource. | |
| | | |
| **Namespace** | **Type** | **Implementation** |
| org.eclipse.ui | `org.eclipse.ui.IWorkbench` | [ActivityPropertyTester.java](https://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/bundles/org.eclipse.ui.workbench/Eclipse%20UI/org/eclipse/ui/internal/activities/ActivityPropertyTester.java) |
| org.eclipse.ui | `org.eclipse.ui.IWorkbench` | [ActivityPropertyTester.java](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/activities/ActivityPropertyTester.java) |
| **Property** | **Description** | |
| isActivityEnabled | Test if the activity in args is enabled. | |
| isCategoryEnabled | Test if the category in args is enabled. | |
| | | |
| **Namespace** | **Type** | **Implementation** |
| org.eclipse.ui.workbenchWindow | `org.eclipse.ui.IWorkbenchWindow` | [OpenPerspectivePropertyTester.java](https://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/bundles/org.eclipse.ui.workbench/Eclipse%20UI/org/eclipse/ui/internal/OpenPerspectivePropertyTester.java) |
| org.eclipse.ui.workbenchWindow | `org.eclipse.ui.IWorkbenchWindow` | [OpenPerspectivePropertyTester.java](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/OpenPerspectivePropertyTester.java) |
| **Property** | **Description** | |
| isPerspectiveOpen | Tests if any perspective is open. | |

Expand All @@ -112,9 +112,9 @@ Here are some examples. I'll pretend all of the examples are deciding when a han
Basic IStructuredSelection
--------------------------

A view provides a structured selection through its selection provider.
An example would be the InfoView in **org.eclipse.ui.examples.contributions**.
You can browse the [plugin.xml](http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/examples/org.eclipse.ui.examples.contributions/plugin.xml) and [InfoView.java](http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/examples/org.eclipse.ui.examples.contributions/src/org/eclipse/ui/examples/contributions/view/InfoView.java) files.
A view provides a structured selection through its selection provider.
An example would be the InfoView in **org.eclipse.ui.examples.contributions**.
You can browse the [plugin.xml](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/examples/org.eclipse.ui.examples.contributions/plugin.xml) and [InfoView.java](https://github.com/eclipse-platform/eclipse.platform.ui/blob/master/examples/org.eclipse.ui.examples.contributions/src/org/eclipse/ui/examples/contributions/view/InfoView.java) files.
The InfoView provides an `IStructuredSelection` with 0 or more `org.eclipse.ui.examples.contributions.model.Person`.

When using the default variable, you must treat it as an `java.util.Collection`.
Expand Down
4 changes: 2 additions & 2 deletions docs/EclipsePluginDevelopmentFAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Also, Eclipse can handle jars within jars. It expands them into a temporary loca

The articles below may be of your interest.

* [Adapters](http://www.eclipse.org/articles/article.php?file=Article-Adapters/index.html)
* [Adapters](https://www.eclipse.org/articles/article.php?file=Article-Adapters/index.html)

### How do I read from a file that I've included in my bundle/plug-in?

Expand Down Expand Up @@ -303,7 +303,7 @@ To leverage the workbench's browser capabilities, you will have to interact with
```java
try {
IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
browserSupport.getExternalBrowser().openURL(new URL("http://www.eclipse.org"));
browserSupport.getExternalBrowser().openURL(new URL("https://www.eclipse.org"));
} catch (PartInitException e) {
// handle the exception
}
Expand Down
Loading
Loading