Package org.rssowl.contrib.podcast.model

Examples of org.rssowl.contrib.podcast.model.IXFile


    if (mView == null || mView.getView().isDisposed()) {
      return;
    }

    if (e.getSubject() instanceof IXFile) {
      IXFile lFile = (IXFile) e.getSubject();
      if (e.getInstructionType() == InstructionEvent.INSTRUCTION_INSPECT
          || e.getInstructionType() == InstructionEvent.INSTRUCTION_MARK
          || e.getInstructionType() == InstructionEvent.INSTRUCTION_COLLECT_ENCL){
// FIXME, check the current bookmark before
//          && mFeed.equals(lFile.getBookMark())) {
View Full Code Here


   * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object,
   *      int)
   */
  public Image getColumnImage(Object pElement, int pColumnIndex) {
    if (pElement instanceof IXFile) {
      IXFile lEnclosure = (IXFile) pElement;
      switch (pColumnIndex) {
      case 0: {
        return null; // Bug in Windows?
      }
      case 1: {
View Full Code Here

    Color lColor = null;

    if (!(pElement instanceof IXFile)) {
      return null;
    }
    IXFile lFile = (IXFile) pElement;
    int lRowIndex = mPreparator.indexOf((IXFile) pElement);
    if (pColumnIndex == 1) {
      // CB TODO, Note that the status subscribed is not fetched from ther
      // Bookmark iteslf.
      int lStatus = lFile.getStatus();
      if (lStatus >= 0) {
        // Check the enclosure status if a new pRow is detected.
        if ((lStatus & 8) != 8 || (lStatus & 4) == 4) {
          lColor = mPreparator.APP_FONT3_COLOR;
          return lColor;
View Full Code Here

    Color lColor = null;
    int lRowIndex;
    if (!(pElement instanceof IXFile)) {
      return null;
    }
    IXFile lFile = (IXFile) pElement;

    lRowIndex = mPreparator.indexOf((IXFile) pElement);
    if (lRowIndex >= 0) {
      // CB TODO, Note that the status subscribed is not fetched from ther
      // Bookmark iteslf.
      int lStatus = lFile.getStatus();
      if (lStatus >= 0) {
        // Check the enclosure status if a new pRow is detected.
        if ((lStatus & 2) == 2) {
          lColor = mPreparator.STATUS_SCHEDULED_COLOR;
          return lColor;
View Full Code Here

    Font lFont = null;

    if (!(pElement instanceof IXFile)) {
      return null;
    }
    IXFile lFile = (IXFile) pElement;
//    int lRowIndex = mPreparator.indexOf((IXFile) pElement);
    if (pColumnIndex == 1) {
      // CB TODO, Note that the status subscribed is not fetched from ther
      // Bookmark iteslf.
      int lStatus = lFile.getStatus();
      if (lStatus >= 0) {
        // Check the enclosure status if a new pRow is detected.
        if ((lStatus & 8) != 8 || (lStatus & 4) == 4) {
          // CB TODO A bit of hack.
          return registry.getItalic(Display.getCurrent()
View Full Code Here

  public HashMap<String, Image> buildImageMap(IPersonalBookMark pBookMark) {
    HashMap<String,Image> lImageMap = new HashMap<String,Image>();
   
    mElements = PersonalFiles.getInstance().getMergedArray(pBookMark, true);
    for (int i = 0; i < mElements.length; i++) {
      IXFile lFile = (IXFile) mElements[i];
      String lFileName = null;
      if (lFile.getFile() != null) {
        lFileName = lFile.getName();
      }
      if (lFileName != null && lFileName.length() > 0) {
        String lExtension = Util.stripName(lFileName);
        if (lExtension != null && lImageMap.get(lExtension) == null) {
          Image lImage = getImage(lExtension);
View Full Code Here

  public Object getValue(Object arg0, String arg1) {
    int lIndex = getColIndex(arg1);
    if (lIndex == 6) {
      if (arg0 instanceof IXFile) {
        IXFile pFile = (IXFile) arg0;
        return new Boolean(pFile.isMarked());
      }
    }
    return null;
  }
View Full Code Here

  }

  public void modify(Object arg0, String arg1, Object arg2) {
    if(arg0 instanceof TableItem){
      TableItem lTableItem  = (TableItem)arg0;
      IXFile lFile = (IXFile)lTableItem.getData();
      if(arg2 instanceof Boolean){
        Boolean lValue = (Boolean)arg2;
        lFile.setMarked(lValue.booleanValue());
        if(lFile instanceof IPersonalAttachment ){
          IPersonalAttachment lEncl = (IPersonalAttachment)lFile;

// CB TODO,migrate the parameter which tells about the marking strategy.          
//          lEncl.getFeed().updateAllCandidates(Configuration
View Full Code Here

    if (mSelection != null) {
      Iterator<?> lIter = mSelection.iterator();
      while (lIter.hasNext()) {
        Object lObject = lIter.next();
        if (conditionMet(lObject)) {
          IXFile lFile = (IXFile) lObject;
          if (lFile != null) {
            String lPath = lFile.getFile().getPath();
            String lExtension = Util.stripName(lFile.getFile()
                .getName());
            ContentAssociation.openProgram(lExtension, lPath);
          }
        }
      }
View Full Code Here

    return Messages.getString(Messages.getString("general.open"));
  }

  public boolean conditionMet(Object pConditionObject) {
    if (pConditionObject instanceof IXFile) {
      IXFile lFile = (IXFile) pConditionObject;
      if (lFile.isLocal()) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of org.rssowl.contrib.podcast.model.IXFile

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.