how do you set the title label for a new module (like chat, users or presentation)

54 views
Skip to first unread message

Roger

unread,
Oct 19, 2016, 9:46:42 PM10/19/16
to BigBlueButton-dev
Right now it shows "undefined" in the timer I am building.  Presently, this is the first part of the code for a timer module:

<mdi:CustomMdiWindow xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:mdi="org.bigbluebutton.common.*" 
xmlns:flc="flexlib.controls.*"
implements="org.bigbluebutton.common.IBbbModuleWindow" 
creationComplete="onCreationComplete()"
        title="{ResourceUtil.getInstance().getString('bbb.timer.title')}"
showCloseButton="false">

This is what is in bbbResources.properties:

bbb.timer.title = Timer
bbb.timer.titleBar = Timer Window title bar
bbb.timer.quickLink.label = Timer Window

Please note that I have also added this TimerConfig.as file to ~bigbluebutton/clients/flash/web-client/src/org/bigbluebutton/web/timer:

package org.bigbluebutton.web.timer {
import org.bigbluebutton.web.timer.views.TimerWindow;
import org.bigbluebutton.web.timer.views.TimerWindowMediator;
import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap;

import robotlegs.bender.framework.api.IConfig;
import robotlegs.bender.framework.api.IInjector;
public class TimerConfig implements IConfig {
[Inject]
public var injector:IInjector;
[Inject]
public var mediatorMap:IMediatorMap;
public function configure():void {
dependencies();
mediators();
}
/**
* Specifies all the dependencies for the feature
* that will be injected onto objects used by the
* application.
*/
private function dependencies():void {
//injector.map(ITimerMessageService).toSingleton(TimerMessageService);
}
/**
* Maps view mediators to views.
*/
private function mediators():void {
mediatorMap.map(TimerWindow).toMediator(TimerWindowMediator);
}
}
}

Also, here are TimerWindow.as and TimerWindowMediator.as in ~bigbluebutton/clients/flash/web-client/src/org/bigbluebutton/web/timer/views:

package org.bigbluebutton.web.user.views {
import mx.controls.Button;
import mx.core.ClassFactory;
import org.apache.flex.collections.ArrayList;
import org.bigbluebutton.web.window.views.BBBWindow;
import org.osflash.signals.Signal;
public class TimerWindow extends BBBWindow {
public function TimerWindow() {
super();
title = "Timer";
width = 300;
height = 400;
}
}
}

package org.bigbluebutton.web.timer.views {
import flash.events.MouseEvent;
import robotlegs.bender.bundles.mvcs.Mediator;
public class TimerWindowMediator extends Mediator {
[Inject]
public var view:TimerWindow;
override public function initialize():void {

}
override public function destroy():void {
super.destroy();
view = null;
}
}
}

Do I have to do some sort of build command from somewhere other than in the ~/bigbluebutton/bigbluebutton-client directory, since that is where the above ActionScript files are located?  Do you have any suggestions?  What am I missing?  TIA.


Roger

unread,
Oct 20, 2016, 10:26:04 AM10/20/16
to BigBlueButton-dev
Also, I've added a titlebaroverlay into TimerWindow.mxml, and TimerOptions.  But it is still not showing up.  Please see attached image.
timer.png

Chad Pilkey

unread,
Oct 20, 2016, 1:17:57 PM10/20/16
to BigBlueButton-dev
Did you rebuild the locale files with "ant locales"?

Roger

unread,
Oct 20, 2016, 3:40:37 PM10/20/16
to BigBlueButton-dev
Yes, that was it.  Thank you!  I was using:

$ ant clean-build-all

Where the description says 

Build BBB client including locales

But I guess there might be an inconsistency there in build.xml?  I thought it contained locales. If I update build.xml to this to contain locales:

<target name="clean-build-all" depends="clean, init-ant-contrib, generate-html-wrapper, compile-deskshare-standalone, build-mic-check,
                                        build-cam-check, build-conn-check, build-webcam-preview-standalone, build-webcam-view-standalone, 
                                        compile-bbb, branding, branding-black, locales" 
description="Build BBB client including locales"/>

Then I get the following error.  Anyways, it is OK because I can just do ant locales by itself.

build-locale:
     [echo] Locale dir is /home/rmoore/dev/bigbluebutton/bigbluebutton-client/locale/sr_RS. Extract locale name.
     [echo] Locale name is sr_RS
     [echo] Building sr_RS
     [echo] We already have a copy of the framework locale. No need to copy /home/rmoore/dev/tools/flex/frameworks/locale/sr_RS
     [echo] Compiling locale sr_RS
     [echo] Start building sr_RS
     [echo] **********************************************
     [echo] *    Did you check bundles.txt  and made     *
     [echo] *    all resources listed here?              *
     [echo] **********************************************
    [mxmlc] Loading configuration file /home/rmoore/dev/tools/apache-flex-sdk-4.13.0-bin/frameworks/flex-config.xml
    [mxmlc] Error: PermGen space
    [mxmlc] 
Caught an exception while logging the end of the build.  Exception was:
java.lang.OutOfMemoryError: PermGen space
at java.util.IdentityHashMap.keySet(IdentityHashMap.java:963)
at java.util.Collections$SetFromMap.<init>(Collections.java:3895)
at java.util.Collections.newSetFromMap(Collections.java:3879)
at java.lang.Throwable.printStackTrace(Throwable.java:649)
at java.lang.Throwable.printStackTrace(Throwable.java:643)
at java.lang.Throwable.printStackTrace(Throwable.java:634)
at org.apache.tools.ant.Main.runBuild(Main.java:878)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
PermGen space
Reply all
Reply to author
Forward
0 new messages