Package factOrFiction.model

Examples of factOrFiction.model.Deck


    if(selection instanceof IStructuredSelection) {
      currentSelection  = (IStructuredSelection)selection;
     
      if(currentSelection.getFirstElement() instanceof CardGroup) {
        CardGroup group = (CardGroup)currentSelection.getFirstElement();
        Deck deck = (Deck)group.getParent();
        CardGroup next = deck.getNext(group);
       
        state = ( next != null) && (next != deck.sideboard) && (group != deck.main);
      }
      action.setEnabled( state );
    }
View Full Code Here


  public void run(IAction action) {
    CardGroup group = (CardGroup)currentSelection.getFirstElement();
   
    if(group != null) {
   
      Deck deck = (Deck)group.getParent();
      CardGroup next = deck.getNext(group);
     
      deck.moveGroupAfter(group, next);     
     
      editor.getSite().getSelectionProvider().setSelection( new StructuredSelection( group ) );
    }
  }
View Full Code Here

TOP

Related Classes of factOrFiction.model.Deck

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.