daily pastebin goal
79%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <extension point="org.eclipse.ui.console.consolePageParticipants">
  2.     <consolePageParticipant class="me.eclipse.plugin.ansiconsole.participants.AnsiConsolePageParticipant" id="me.eclipse.plugin.ansiconsole.participants.AnsiConsolePageParticipant">
  3.         <enablement>
  4.             <instanceof value="org.eclipse.ui.console.IConsole" />
  5.         </enablement>
  6.     </consolePageParticipant>
  7. </extension>
  8.    
  9. public class AnsiConsolePageParticipant implements IConsolePageParticipant{
  10.     @Override
  11.     public <T> T getAdapter(Class<T> adapter) {
  12.         return null;
  13.     }
  14.  
  15.     @Override
  16.     public void activated() {
  17.         // Nothing to do, but we are forced to implement it for IConsolePageParticipant
  18.     }
  19.  
  20.     @Override
  21.     public void deactivated() {
  22.         // Nothing to do, but we are forced to implement it for IConsolePageParticipant
  23.     }
  24.  
  25.     @Override
  26.     public void dispose() {
  27.     }
  28.  
  29.     @Override
  30.     public void init(IPageBookViewPage page, IConsole console) {
  31.         //do forced replacement
  32.     }
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top