Skip to content

Commit

Permalink
RITE-65: RACK Nature Boiler-Plate
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisage committed Nov 1, 2023
1 parent 021702c commit ba25bdd
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 2 deletions.
58 changes: 56 additions & 2 deletions tools/rack/rack.plugin/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,68 @@
</extension>

<!-- Import Wizard -->
<extension point="org.eclipse.ui.importWizards">
<extension point="org.eclipse.ui.importWizards" project="true">
<category
id="com.ge.research.rack.wizard.rackImportWizardCategory"
name="RACK">
</category>
<wizard
category="org.eclipse.ui"
availableAsShortcut="true"
category="com.ge.research.rack.wizard.rackImportWizardCategory"
class="com.ge.research.rack.wizard.RackImportWizard"
icon="icons/sample.gif"
id="com.ge.research.rack.rackImportWizard"
name="Rack Import Wizard">
</wizard>
<description>
This wizard creates a simple Java editor with
all the required classes and manifest markup.
</description>
</extension>

<!-- New Wizard -->
<extension point="org.eclipse.ui.newWizards" project="true">
<category
id="com.ge.research.rack.wizard.rackImportWizardCategory"
name="RACK">
</category>
<wizard
availableAsShortcut="true"
category="com.ge.research.rack.wizard.rackImportWizardCategory"
class="com.ge.research.rack.wizard.RackImportWizard"
icon="icons/sample.gif"
id="com.ge.research.rack.rackImportWizard"
name="Rack Import Wizard">
</wizard>
<description>
This wizard creates a simple Java editor with
all the required classes and manifest markup.
</description>
</extension>

<!-- Project Nature -->
<extension
id="com.ge.research.rackBuilder"
name="RACK Builder"
point="org.eclipse.core.resources.builders">

<builder hasNature="true">
<run class="com.ge.research.nature.RackBuilder"> </run>
</builder>

</extension>

<extension
id="com.ge.research.rackNature"
name="RACK Project Nature"
point="org.eclipse.core.resources.natures">

<runtime>
<run class="com.ge.research.nature.RackNature"></run>
</runtime>

<builder id="com.ge.research.rackBuilder"></builder>

</extension>

</plugin>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.ge.research.rack.nature;

import java.util.Map;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;

public class RackBuilder extends IncrementalProjectBuilder {

@Override
protected IProject[] build(int kind, Map<String, String> args, IProgressMonitor monitor) throws CoreException {
// TODO Auto-generated method stub
return null;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.ge.research.rack.nature;

import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IProjectNature;
import org.eclipse.core.runtime.CoreException;

public class RackNature implements IProjectNature {

@Override
public void configure() throws CoreException {
// TODO Auto-generated method stub

}

@Override
public void deconfigure() throws CoreException {
// TODO Auto-generated method stub

}

@Override
public IProject getProject() {
// TODO Auto-generated method stub
return null;
}

@Override
public void setProject(IProject project) {
// TODO Auto-generated method stub

}

}

0 comments on commit ba25bdd

Please sign in to comment.