| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| |
| <html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <title>Contributing Refactorings</title> |
| <style type="text/css"> |
| <!-- |
| span.st1 |
| { |
| font-family: Courier New; |
| font-size: 10pt; |
| color: #800000; |
| } |
| span.st2 |
| { |
| font-family: Courier New; |
| font-size: 10pt; |
| color: #000000; |
| } |
| span.st3 |
| { |
| font-family: Courier New; |
| font-size: 10pt; |
| color: #000080; |
| } |
| span.st4 |
| { |
| font-family: Courier New; |
| font-size: 10pt; |
| color: #008000; |
| } |
| span.st5 |
| { |
| font-family: Times New Roman; |
| font-size: 12pt; |
| color: #000000; |
| } |
| --> |
| </style> |
| </head> |
| |
| <body> |
| <h1>Contributing Refactorings</h1> |
| |
| TODO |
| |
| org.eclipse.rephraserengine.ui.refactoring.refactorings extension point |
| |
| <h2>Examples</h2> |
| |
| <!-- http://www.sautinsoft.net/rtf-to-html-convert.aspx --> |
| |
| <div><span class="st2"> </span><span class="st3"><extension</span></div> |
| <div><span class="st2"> </span><span class="st3">point=</span><span class="st4">"org.eclipse.rephraserengine.ui.refactoring.refactorings"</span><span class="st3">></span></div> |
| <div><span class="st2"></span> </div> |
| |
| <div><span class="st2"> </span><span class="st1"><!-- The resource filter determines what must be selected for these refactorings to be visible --></span></div> |
| <div><span class="st2"> </span><span class="st3"><resourceFilter</span><span class="st2"> </span><span class="st3">class=</span><span class="st4">"org.eclipse.rephraserengine.examples.text.TextFileResourceFilter"</span><span class="st2"> </span><span class="st3">/></span></div> |
| <div><span class="st2"></span> </div> |
| <div><span class="st2"> </span><span class="st1"><!-- Each group defines a new (separated) section in the Refactor menu --></span></div> |
| <div><span class="st2"> </span><span class="st3"><group></span></div> |
| |
| <div><span class="st2"></span> </div> |
| <div><span class="st2"> </span><span class="st1"><!-- A resource refactoring which uses an auto-generated user interface --></span></div> |
| <div><span class="st2"> </span><span class="st3"><resourceRefactoring</span></div> |
| <div><span class="st2"> </span><span class="st3">class=</span><span class="st4">"org.eclipse.rephraserengine.examples.text.ConvertTabsToSpacesRefactoring"</span><span class="st2"> </span><span class="st3">/></span></div> |
| <div><span class="st2"></span> </div> |
| <div><span class="st2"> </span><span class="st1"><!-- An editor refactoring which uses an auto-generated user interface --></span></div> |
| |
| <div><span class="st2"> </span><span class="st3"><editorRefactoring</span></div> |
| <div><span class="st2"> </span><span class="st3">class=</span><span class="st4">"org.eclipse.photran.internal.core.refactoring.MakePrivateEntityPublicRefactoring"</span><span class="st2"> </span><span class="st3">/></span></div> |
| <div><span class="st2"></span> </div> |
| <div><span class="st2"> </span><span class="st1"><!-- Same as previous, except the given label ("Increase Visibility") will appear in the menu;</span></div> |
| <div><span class="st2"></span><span class="st1"> when the label attribute is absent, the label will be whatever is returned by the refactoring&apos;s</span></div> |
| |
| <div><span class="st2"></span><span class="st1"> #getName method --></span></div> |
| <div><span class="st2"> </span><span class="st3"><editorRefactoring</span></div> |
| <div><span class="st2"> </span><span class="st3">label=</span><span class="st4">"Increase Visibility"</span></div> |
| <div><span class="st2"> </span><span class="st3">class=</span><span class="st4">"org.eclipse.photran.internal.core.refactoring.MakePrivateEntityPublicRefactoring"</span><span class="st2"> </span><span class="st3">/></span></div> |
| <div><span class="st2"></span> </div> |
| |
| <div><span class="st2"> </span><span class="st1"><!-- An editor refactoring which uses a custom user interface --></span></div> |
| <div><span class="st2"> </span><span class="st3"><editorRefactoring</span></div> |
| <div><span class="st2"> </span><span class="st3">class=</span><span class="st4">"org.eclipse.photran.internal.core.refactoring.AddOnlyToUseStmtRefactoring"</span></div> |
| <div><span class="st2"> </span><span class="st3">inputPage=</span><span class="st4">"org.eclipse.photran.internal.refactoring.ui.AddOnlyToUseStmtInputPage"</span><span class="st2"> </span><span class="st3">/></span></div> |
| <div><span class="st2"></span> </div> |
| |
| <div><span class="st2"> </span><span class="st1"><!-- A command which is contributed as an editor refactoring --></span></div> |
| <div><span class="st2"> </span><span class="st1"><!-- Note that this is the only way to give a refactoring a key binding --></span></div> |
| <div><span class="st2"> </span><span class="st3"><editorRefactoring</span><span class="st2"> </span><span class="st3">command=</span><span class="st4">"org.eclipse.photran.ui.RenameRefactoringCommand"</span><span class="st2"> </span><span class="st3">/></span></div> |
| <div><span class="st2"></span> </div> |
| <div><span class="st2"> </span><span class="st1"><!-- An editor refactoring which only appears in the menu when the</span></div> |
| |
| <div><span class="st2"></span><span class="st1"> PHOTRAN_INCLUDE_TEST_REFACTORINGS environment variable is set to a non-null value --></span></div> |
| <div><span class="st2"> </span><span class="st3"><editorRefactoring</span></div> |
| <div><span class="st2"> </span><span class="st3">require_env=</span><span class="st4">"PHOTRAN_INCLUDE_TEST_REFACTORINGS"</span></div> |
| <div><span class="st2"> </span><span class="st3">class=</span><span class="st4">"org.eclipse.photran.internal.core.refactoring.AddEmptySubprogramRefactoring"</span><span class="st2"> </span><span class="st3">/></span></div> |
| <div><span class="st2"></span> </div> |
| |
| <div><span class="st2"> </span><span class="st3"></group></span></div> |
| <div><span class="st2"> </span><span class="st3"></extension></span></div> |
| </pre> |
| |
| </body> |
| </html> |