facebook

Javascript Outline not working in 7.0

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #293318 Reply

    Larry Gerndt
    Member

    Upon upgrading to MyEclipse 7, the Outline view is either empty or near empty for most of my JavaScript files. Is this a known bug or is it something only I am experiencing?

    #293367 Reply

    Loyal Water
    Member

    Can you paste a sample javascript file that you are working with.

    Also, can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me so that I can get this tested with the same configuration.

    #293370 Reply

    Larry Gerndt
    Member

    Sample JavaScript file:
    /***************************************************************
    Copyright (c) 2008 Intuit Inc. All rights reserved.
    Unauthorized reproduction is a violation of applicable law.
    This material contains certain confidential and proprietary
    information and trade secrets of Intuit Inc.
    ****************************************************************/
    var INTUIT = INTUIT || {};
    var Ext = Ext || {};

    INTUIT.Categorize = function()
    {
    var startDate;
    var endDate;
    var isGoalsPage;
    var isTrendsPage;

    var setVisibilityOfCategorizationNeededPanel = function(visible)
    {
    var dateSelector = Ext.get(‘dfdate_selector’);
    if (dateSelector) {
    dateSelector.applyStyles(visible ? ‘top:149px’ : ‘top:79px’);
    dateSelector.removeClass(‘x-hidden’);
    }
    if (visible) {
    Ext.getCmp(‘categorizeNowHeaderPanel’).show(true);
    Ext.getCmp(‘categorizeNowHeaderPanel’).expand(true);
    Ext.get(Ext.DomQuery.selectNode(“div#mainPanel div.x-panel-header”)).addClass(‘categorize’);

    } else {
    Ext.getCmp(‘categorizeNowHeaderPanel’).collapse(true);
    Ext.get(Ext.DomQuery.selectNode(“div#mainPanel div.x-panel-header”)).removeClass(‘categorize’);
    }
    };

    var stringValueOfHowLongItTakes = function(numUncategorized)
    {
    var minutes = Math.round(numUncategorized/10)+1;
    minutes = INTUIT.Utils.stripLeadingZerosFromString(“”+minutes);
    return minutes + ‘ ‘ + (minutes===’1’ ? ‘minute’ : ‘minutes’);
    };

    var updateDisplay = function(numUncategorized)
    {
    var num = numUncategorized;
    Ext.fly(‘num-uncategorized’).update(“”+num);
    Ext.fly(‘num-minutes’).update(stringValueOfHowLongItTakes(num));
    setVisibilityOfCategorizationNeededPanel(num >= 2);
    };

    var handleReceivedTransactions = function(options, success, xhr)
    {
    if(xhr.status===INTUIT.Ajax.xhrStatus.ok)
    {
    var json = eval(‘(‘+ xhr.responseText +’)’);
    updateDisplay(json.rowCount);
    }
    };

    var requestTransactions = function()
    {
    INTUIT.Ajax.request({
    url: INTUIT.Url.getBasePath() + “jsf/dynamic/ajax/getUncategorizedTxns?” + Ext.urlEncode({startDate:startDate, endDate:endDate}),
    method:”GET”,
    callback: handleReceivedTransactions
    });
    };

    var refresh = function(_startDate, _endDate)
    {
    startDate = _startDate ? _startDate : startDate;
    endDate = _endDate ? _endDate : endDate;
    requestTransactions();
    };

    var handleDoneCategorizing = function()
    {
    refresh();
    if (isGoalsPage) { INTUIT.FLEX.getFlexApp(‘BudgetingProjectFlash’).reloadBudgetGoals(); }
    if (isTrendsPage) { INTUIT.TrendsPageController.refresh(); }
    };

    var categorize = function()
    {
    INTUIT.InOutPieTxnsDialog.showDialogForCategoryWhenCalledFromExternalPage(
    ‘Uncategorized’, startDate, endDate, handleDoneCategorizing, ‘uncategorizedTxnsDialog’);
    };

    var init = function()
    {
    new Ext.ux.ImageButton({
    renderTo: ‘categorize-now-button-anchor’,
    imgPath : ‘images/common/btn_categorize.png’,
    imgWidth : 133,
    imgHeight : 33,
    handler: categorize
    });
    isGoalsPage = window.location[‘href’].indexOf(‘goals’) != -1;
    isTrendsPage = window.location[‘href’].indexOf(‘trends’) != -1;
    };

    return {
    init : init,
    refresh : refresh,
    categorize : categorize
    };

    }();

    Installation Details:
    *** Date:
    Monday, January 12, 2009 8:18:29 AM PST

    ** System properties:
    OS=MacOSX
    OS version=10.5.6
    Java version=1.5.0_16

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.0
    Build id: 7.0-20081201

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 7.0
    Build id: 7.0-20081201

    Eclipse Platform

    Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
    Build id: M20080911-1700

    Eclipse Java Development Tools

    Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
    Build id: M20080709-0800

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.1.v20080806-67718083A56B4H2A3213573
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
    Build id: M20080703-0800

    Eclipse Plug-in Development Environment

    Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
    Build id: M20080703-0800

    Eclipse startup command=-os
    macosx
    -ws
    carbon
    -arch
    x86
    -showsplash
    -launcher
    /Library/Genuitec/MyEclipse 7.0/myeclipse.app/Contents/MacOS/myeclipse
    -name
    Myeclipse
    –launcher.library
    /Library/Genuitec/MyEclipse 7.0/myeclipse.app/Contents/MacOS//../../../../Common/plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.101.R34x_v20080731/eclipse_1115.so
    -startup
    /Library/Genuitec/MyEclipse 7.0/myeclipse.app/Contents/MacOS/../../../../Common/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    -clean
    -configuration
    ../../../configuration
    -launcher
    /Library/Genuitec/MyEclipse 7.0/myeclipse.app/Contents/MacOS/myeclipse
    -clean
    -configuration
    ../../../configuration
    -data
    /Users/lgerndt/Projects/Java/workspace
    -launcher
    /Library/Genuitec/MyEclipse 7.0/myeclipse.app/Contents/MacOS/myeclipse
    -clean
    -configuration
    ../../../configuration
    -keyring
    /Users/lgerndt/.eclipse_keyring
    -consoleLog
    -showlocation
    -vm
    /System/Library/Frameworks/JavaVM.framework

    #293460 Reply

    Loyal Water
    Member

    lgerndt,
    I was able to reproduce the issue with the sample js fie that you uploaded. I’ll ask the dev team to look into this issue right away. Sorry for the inconvenience caused.

    #293465 Reply

    Larry Gerndt
    Member

    thanks Nipun!

    #293510 Reply

    Loyal Water
    Member

    Your welcome.

    #299271 Reply

    Larry Gerndt
    Member

    I’m really surprised that no one else is complaining about JavaScript outlines not working. I suppose most people are not using closures (i.e. the Crockford Singleton pattern). I use it for almost everything.

    #299341 Reply

    Loyal Water
    Member

    Im sorry we could not include a fix for this problem in the 7.5 release. We are going to try and address JavaScript tooling across the board for 8.x

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Javascript Outline not working in 7.0

You must be logged in to post in the forum log in