Skip to content

Commit

Permalink
Add tabbed properties contributor to ds
Browse files Browse the repository at this point in the history
  • Loading branch information
goglepox committed Sep 3, 2014
1 parent 1babff0 commit 2d08519
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions plugins/net.bioclipse.ds.ui/plugin.xml
Expand Up @@ -75,4 +75,37 @@
file="toc.xml"
primary="true"/>
</extension>

<extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
<propertyContributor contributorId="net.bioclipse.ds.ui.views.DSView">
<propertyCategory
category="net.bioclipse.ui.properties.category.general">
</propertyCategory>
</propertyContributor>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
<propertyTabs
contributorId="net.bioclipse.ds.ui.views.DSView">
<propertyTab
category="net.bioclipse.ui.properties.category.general"
id="net.bioclipse.ui.properties.general"
label="General">
</propertyTab>
</propertyTabs>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertySections">
<propertySections
contributorId="net.bioclipse.ds.ui.views.DSView">
<propertySection
class="org.eclipse.ui.views.properties.tabbed.AdvancedPropertySection"
id="net.bioclipse.ui.properties.section.General"
tab="net.bioclipse.ui.properties.general">
<input
type="net.bioclipse.ds.model.ITestResult">
</input>
</propertySection>
</propertySections>
</extension>
</plugin>
Expand Up @@ -437,8 +437,8 @@ public void run() {
getSite().getWorkbenchWindow().getPartService().addPartListener(DSView.getInstance());

//Make viewer post selection to Eclipse
getSite().setSelectionProvider(viewer);


//If editor is open, react on it
if (getSite()==null) return;
if (getSite().getWorkbenchWindow()==null) return;
Expand Down Expand Up @@ -479,7 +479,7 @@ public void run() {
};
job.setUser( false );
job.schedule();

getSite().setSelectionProvider( viewer );
}

@SuppressWarnings("unused")
Expand Down

0 comments on commit 2d08519

Please sign in to comment.