rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
sendPresence(Presence.PRESENCE_OFFLINE);
ExtendedStatus es=StatusList.getInstance().getStatus(Presence.PRESENCE_OFFLINE); sendPresence(Presence.PRESENCE_OFFLINE, es.getMessage());
public void logoff(){ if (theStream!=null) try { sendPresence(Presence.PRESENCE_OFFLINE); } catch (Exception e) { e.printStackTrace(); } };
keyTimer=0;
public void sendMessage(Contact to, final String body, final String subject , int composingState) { boolean groupchat=to.origin==Contact.ORIGIN_GROUPCHAT; Message message = new Message( to.getJid(), body, subject, groupchat ); ...
String m_client=(cf.m_client!=null)?cf.m_client:"Bombus"; query.addChild("name", m_client); String m_ver=(cf.m_ver!=null)?cf.m_ver:Version.getVersionLang(); query.addChild("version", m_ver); String m_os=(cf.m_os!=null)?cf.m_os:Version.getOs(); query.addChild("os", m_os);
query.addChild("name", cf.m_client); query.addChild("version", cf.m_ver); query.addChild("os", cf.m_os);
public IqVersionReply(JabberDataBlock request) { super(request.getAttribute("from"), Iq.TYPE_RESULT, request.getAttribute("id") ); JabberDataBlock query=addChild("query",null); query.setNameSpace("jabber:iq:version"); String m_client=(cf.m_client!=null)?cf.m_client:"Bombus"; ...
show=getShow(); text.append(show);
show=getShow(); if (show.equals(PRS_ONLINE)) text.append(SR.MS_ONLINE); if (show.equals(PRS_CHAT)) text.append(SR.MS_CHAT); if (show.equals(PRS_AWAY)) text.append(SR.MS_AWAY); if (show.equals(PRS_XA)) text.append(SR.MS_XA); if (show.equals(PRS_DND)) text.append(SR.MS_DND);
public void dispathch(){ String show; String errText=null; text=new StringBuffer(); String type=getTypeAttribute(); presenceCode=PRESENCE_AUTH; if (type!=null) { if (type.equals(PRS_OFFLINE)) { presenceCode=PRESENCE_OFFLINE; text.append("offline"); ...
addItem(SR.MS_VCARD,1); addItem(SR.MS_CLIENT_INFO,0);
addItem(SR.MS_CLIENT_INFO,0);
public RosterItemActions(Display display, Object item) { super(item.toString()); this.item=item; if (item==null) return; boolean isContact=( item instanceof Contact ); if (isContact) { Contact contact=(Contact)item; if (contact.getGroupType()==Groups.TYPE_TRANSP) { addItem(SR.MS_LOGON,5); a...
public Contact(final String Nick, final String sJid, final int Status, String subscr) { this(); nick=Nick; jid= new Jid(sJid); status=Status; bareJid=sJid; this.subscr=subscr; setSortKey((Nick==null)?sJid:Nick); transport=RosterIcons.getInstance().getTransportIndex(jid.getTransport());
protected Contact (){ super(RosterIcons.getInstance()); msgs=new Vector(); key1="";
public Contact(final String Nick, final String sJid, final int Status, String subscr) { this(); nick=Nick; jid= new Jid(sJid); status=Status; bareJid=sJid; this.subscr=subscr; setSortKey((Nick==null)?sJid:Nick); //msgs.removeAllElements(); //calculating t...
public Presence(int status, int priority, String message)
public Presence( JabberDataBlock _parent, Hashtable _attributes )
public Presence(int status, int priority, String message) { super( null, null ); switch (status){ case PRESENCE_OFFLINE: setType(PRS_OFFLINE); break; case PRESENCE_INVISIBLE: setType(PRS_INVISIBLE); break; case PRESENCE_CHAT: setShow(PRS_CHAT);break; case PRESENCE_AWAY: setShow(PRS_...
super( null, null ); switch (status){ case PRESENCE_OFFLINE: setType(PRS_OFFLINE); break; case PRESENCE_INVISIBLE: setType(PRS_INVISIBLE); break; case PRESENCE_CHAT: setShow(PRS_CHAT);break; case PRESENCE_AWAY: setShow(PRS_AWAY);break; case PRESENCE_XA: setShow(PRS_XA);break; case PRESENCE_DND: setShow(PRS_DND);break; ...
super( _parent, _attributes );
public Presence(int status, int priority, String message) { super( null, null ); switch (status){ case PRESENCE_OFFLINE: setType(PRS_OFFLINE); break; case PRESENCE_INVISIBLE: setType(PRS_INVISIBLE); break; case PRESENCE_CHAT: setShow(PRS_CHAT);break; case PRESENCE_AWAY: setShow(PRS_...
case 40: { if (c.jid!=null) { new InviteForm(c, display); } else { MucContact mcJ=(MucContact) c; if (mcJ.realJid!=null) { boolean onlineConferences=false; for (Enumeration cJ=StaticData.getInstance().roster.getHContacts().elements(); cJ.hasMoreElements(); ) { try { MucContact mcN=(MucContact)cJ.nextElement(); if (mcN...
public void eventOk(){ try { final Roster roster=StaticData.getInstance().roster; boolean isContact=( item instanceof Contact ); Contact c = null; Group g = null; if (isContact) c=(Contact)item; else g=(Group) item; MenuItem me=(Me...
public void addItem(String label, int index){ addItem(new MenuItem(label, index));
public void addItem(MenuItem mi){ menuitems.addElement(mi);
public void addItem(String label, int index){ addItem(new MenuItem(label, index)); }
f.append("Are you sure want to BAN this person?");
f.append(SR.MS_CONFIRM_BAN);
public ConferenceQuickPrivelegeModify(Display display, MucContact victim, int action) { this.victim=victim; this.action=action; switch (action) { case KICK: f=new Form(SR.MS_KICK); break; case OUTCAST: f=new Form(SR.MS_...
user.append(victim.jid);
user.append(victim.realJid);
public ConferenceQuickPrivelegeModify(Display display, MucContact victim, int action) { this.victim=victim; this.action=action; switch (action) { case KICK: f=new Form(SR.MS_KICK); break; case OUTCAST: f=new Form(SR.MS_...
cmdOk=new Command( (action==KICK)? SR.MS_KICK : SR.MS_BAN, Command.SCREEN, 1);
public ConferenceQuickPrivelegeModify(Display display, MucContact victim, int action) { this.victim=victim; this.action=action; switch (action) { case KICK: f=new Form(SR.MS_KICK); break; case OUTCAST: f=new Form(SR.MS_...
SequenceStreamer streamer,
SequenceDB seqDB,
public DataStore buildDataStore( File storeFile, SequenceStreamer streamer, Packing packing, int wordLength, int stepSize, int threshold ) throws IllegalAlphabetException, IOException, BioException { ByteArrayOutputStream packingStream = new ByteArrayOutputStream(); ObjectOutputStr...
int stepSize,
public DataStore buildDataStore( File storeFile, SequenceStreamer streamer, Packing packing, int wordLength, int stepSize, int threshold ) throws IllegalAlphabetException, IOException, BioException { ByteArrayOutputStream packingStream = new ByteArrayOutputStream(); ObjectOutputStr...
{ ByteArrayOutputStream packingStream = new ByteArrayOutputStream(); ObjectOutputStream packingSerializer = new ObjectOutputStream(packingStream); packingSerializer.writeObject(packing); packingSerializer.flush(); final int structDataSize = 6 * Constants.BYTES_IN_INT + packingStream.toByteArray().length; final int ha...
{ return this.buildDataStore(storeFile, new SequenceStreamer.SequenceDBStreamer(seqDB), packing, wordLength, 1, threshold);
public DataStore buildDataStore( File storeFile, SequenceStreamer streamer, Packing packing, int wordLength, int stepSize, int threshold ) throws IllegalAlphabetException, IOException, BioException { ByteArrayOutputStream packingStream = new ByteArrayOutputStream(); ObjectOutputStr...
commandList.add("-vf"); commandList.add("filmdint=io=" + ((int) Math.round(info.getFrameRate() * 1000)) + ":" + ((int) Math.round(ofps * 1000)));
if (info.getFrameRate() != ofps && info.getFrameRate() < 1000) { commandList.add("-vf-add"); commandList.add("filmdint=io=" + ((int) Math.round(info.getFrameRate() * 1000)) + ":" + ((int) Math.round(ofps * 1000))); }
private List prepareBaseCommandList(String inputVideo, String outputVideo, MPlayerInfo info) { List commandList = new ArrayList(); commandList.add(MPlayerInfo.getMPlayerPath() + "mencoder"); commandList.add(inputVideo); commandList.add("-o"); commandList.add(outputVideo); if (ConverterOptions.getCurrentP...
timeInfo.setBeginNow(true);
protected void parseTimeArg(TimeInfo timeInfo, String argValue) throws OWSException { String[] timeRange = argValue.split("/"); double now = System.currentTimeMillis() / 1000; try { // parse start time if (timeRange[0].equalsIgnoreCase("now")) ...
timeInfo.setEndNow(true);
protected void parseTimeArg(TimeInfo timeInfo, String argValue) throws OWSException { String[] timeRange = argValue.split("/"); double now = System.currentTimeMillis() / 1000; try { // parse start time if (timeRange[0].equalsIgnoreCase("now")) ...
timeInfo.setStopTime(timeInfo.getStartTime());
timeInfo.setDeltaTimes(0, 0);
protected void parseTimeArg(TimeInfo timeInfo, String argValue) throws OWSException { String[] timeRange = argValue.split("/"); double now = System.currentTimeMillis() / 1000; try { // parse start time if (timeRange[0].equalsIgnoreCase("now")) ...
setLight(false);
if (elfPlatform && lightState==1) { LightControl.setLight(0); lightState=0; }
public void run() { try { if (getKeyLockState()) { setLight(false); } else { setLight(true); } if (setAutoStatus) { keyTimer=keyTimer+5; if (!isAway) { ...
setLight(true);
if (elfPlatform && lightState==0) { LightControl.setLight(1); lightState=1; }
public void run() { try { if (getKeyLockState()) { setLight(false); } else { setLight(true); } if (setAutoStatus) { keyTimer=keyTimer+5; if (!isAway) { ...
setLight(cf.lightState);
if (Version.getPlatformName().startsWith("SIE-")) { switch (cf.lightState) { case 0: addCommand(cmdTurnOnLight); lightState=0; case 1: addCommand(cmdTurnOffLight); lightState=1; } LightControl.setLight(cf.lightState); }
public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu...
if (c==cmdLightOn) { setLight(true); } if (c==cmdLightOff) { setLight(false); }
if (c==cmdTurnOnLight) { LightControl.setLight(1); removeCommand(cmdTurnOnLight); addCommand(cmdTurnOffLight); } if (c==cmdTurnOffLight) { LightControl.setLight(0); removeCommand(cmdTurnOffLight); addCommand(cmdTurnOnLight); }
public void commandAction(Command c, Displayable d){ if (c==cmdQuit) { destroyView(); logoff(); //StaticData sd=StaticData.getInstance(); //cf.saveToStorage(); Bombus.getInstance().notifyDestroyed(); return; } if (c==cmdMinimize) { Bomb...
boolean lightState=(System.getProperty("MPJCKEYL")=="1")?true:false;
boolean lightState=(System.getProperty("MPJCKEYL").startsWith("1"))?true:false; if (lightState) elfPlatform=true;
public static boolean getKeyLockState() { boolean lightState=(System.getProperty("MPJCKEYL")=="1")?true:false; return lightState; }
addItem(SR.MS_ITEM_ACTIONS, 0); addItem(SR.MS_STATUS_MENU, 1); addItem(SR.MS_ACTIVE_CONTACTS, 2); addItem(SR.MS_ALERT_PROFILE_CMD, 3); addItem(SR.MS_CONFERENCE, 4); addItem(SR.MS_ARCHIVE, 5); addItem(SR.MS_ADD_CONTACT, 6); addItem(SR.MS_TOOLS, 7); addItem(SR.MS_ACCOUNT_, 8); addItem(SR.MS_ABOUT, 10); addItem(SR.MS_APP_...
addItem(SR.MS_ITEM_ACTIONS, 0, 0x0f24); addItem(SR.MS_STATUS_MENU, 1, 0x0f16); addItem(SR.MS_ACTIVE_CONTACTS, 2, 0x0f21); addItem(SR.MS_ALERT_PROFILE_CMD, 3, 0x0f17); addItem(SR.MS_CONFERENCE, 4,0x40); addItem(SR.MS_ARCHIVE, 5,0x0f12); addItem(SR.MS_ADD_CONTACT, 6, 0x0f02); addItem(SR.MS_TOOLS, 7,0x0f24); addItem(SR.MS...
public RosterMenu(Display display, Object o) { super(SR.MS_MAIN_MENU); this.o=o; addItem(SR.MS_ITEM_ACTIONS, 0); addItem(SR.MS_STATUS_MENU, 1); addItem(SR.MS_ACTIVE_CONTACTS, 2); addItem(SR.MS_ALERT_PROFILE_CMD, 3); addItem(SR.MS_CONFERENCE, 4); addItem(SR.MS_...
sndFile=new ChoiceGroup(SR.MS_SOUND, ConstMIDP.CHOICE_POPUP); files=new StringLoader().stringLoader("/sounds/res.txt",3); for (Enumeration f=files[2].elements(); f.hasMoreElements(); ) { sndFile.append( (String)f.nextElement(), null ); } sndFile.setSelectedIndex(cf.sounsMsgIndex, true);
public ConfigForm(Display display) { this.display=display; parentView=display.getCurrent(); cf=Config.getInstance(); f=new Form(SR.MS_OPTIONS); roster=new ChoiceGroup(SR.MS_ROSTER_ELEMENTS, Choice.MULTIPLE); roster.append(SR.MS_OFFLINE_CONTACTS, null); ...
sndFile.addCommand(cmdPlaySound); sndFile.setItemCommandListener(this); f.append(startup);
f.append(startup);
public ConfigForm(Display display) { this.display=display; parentView=display.getCurrent(); cf=Config.getInstance(); f=new Form(SR.MS_OPTIONS); roster=new ChoiceGroup(SR.MS_ROSTER_ELEMENTS, Choice.MULTIPLE); roster.append(SR.MS_OFFLINE_CONTACTS, null); ...
public static final int getType(String dsc)
public int getType()
public static final int getType(String dsc) { if (dsc!=null) for (int i=0;i<JobEntryInterface.type_desc.length;i++) { if (JobEntryInterface.type_desc[i].equalsIgnoreCase(dsc)) return i; } // Try the long description! for (int i=0;i<JobEntryInterface.type_desc_long.length;i++) { if (JobEntryInterface.type_...
if (dsc!=null) for (int i=0;i<JobEntryInterface.type_desc.length;i++) { if (JobEntryInterface.type_desc[i].equalsIgnoreCase(dsc)) return i; } for (int i=0;i<JobEntryInterface.type_desc_long.length;i++) { if (JobEntryInterface.type_desc_long[i].equalsIgnoreCase(dsc)) return i; } return JobEntryInterface.TYPE_JOBENTRY_...
return entry.getType();
public static final int getType(String dsc) { if (dsc!=null) for (int i=0;i<JobEntryInterface.type_desc.length;i++) { if (JobEntryInterface.type_desc[i].equalsIgnoreCase(dsc)) return i; } // Try the long description! for (int i=0;i<JobEntryInterface.type_desc_long.length;i++) { if (JobEntryInterface.type_...
super(message); this.res = null;
this(null, null, message);
public IllegalResidueException(String message) { super(message); this.res = null; }
public StepMeta newStep(String name, String description, boolean openit, boolean rename)
public StepMeta newStep()
public StepMeta newStep(String name, String description, boolean openit, boolean rename) { StepMeta inf = null; // See if we need to rename the step to avoid doubles! if (rename && transMeta.findStep(name)!=null) { int i=2; String newname = name+" "+i; ...
StepMeta inf = null; if (rename && transMeta.findStep(name)!=null) { int i=2; String newname = name+" "+i; while (transMeta.findStep(newname)!=null) { i++; newname = name+" "+i; } name=newname; } StepLoader steploader = StepLoader.getInstance(); StepPlugin stepPlugin = null; try { stepPlugin = steploader.findStepPl...
return newStep(true, true);
public StepMeta newStep(String name, String description, boolean openit, boolean rename) { StepMeta inf = null; // See if we need to rename the step to avoid doubles! if (rename && transMeta.findStep(name)!=null) { int i=2; String newname = name+" "+i; ...
public void checkTrans(boolean only_selected)
public void checkTrans()
public void checkTrans(boolean only_selected) { CheckTransProgressDialog ctpd = new CheckTransProgressDialog(shell, transMeta, remarks, only_selected); ctpd.open(); // manages the remarks arraylist... showLastTransCheck(); }
CheckTransProgressDialog ctpd = new CheckTransProgressDialog(shell, transMeta, remarks, only_selected); ctpd.open(); showLastTransCheck();
checkTrans(false);
public void checkTrans(boolean only_selected) { CheckTransProgressDialog ctpd = new CheckTransProgressDialog(shell, transMeta, remarks, only_selected); ctpd.open(); // manages the remarks arraylist... showLastTransCheck(); }
LightControl.setLight(false);
setLight(false);
public void run() { try { if (getKeyLockState() && lightState==1) { if (elfPlatform==true && lightState==1) { LightControl.setLight(false); lightState=0; } } if (getKeyLock...
LightControl.setLight(true);
setLight(true);
public void run() { try { if (getKeyLockState() && lightState==1) { if (elfPlatform==true && lightState==1) { LightControl.setLight(false); lightState=0; } } if (getKeyLock...
cmdActiveContact=new Command(SR.MS_ACTIVE_CONTACTS, activeType, 3);
cmdMenu=new Command("Menu", activeType, 3);
public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu...
addCommand(cmdActiveContact);
addCommand(cmdMenu);
public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu...
LightControl.setLight(true);
setLight(true);
public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu...
LightControl.setLight(false);
setLight(false);
public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu...
if (c==cmdActiveContact) { new ActiveContacts(display, null); }
if (c==cmdMenu) { new RosterMenu(display, getFocusedObject()); }
public void commandAction(Command c, Displayable d){ if (c==cmdQuit) { destroyView(); logoff(); //StaticData sd=StaticData.getInstance(); //cf.saveToStorage(); Bombus.getInstance().notifyDestroyed(); return; } if (c==cmdMinimize) { Bomb...
LightControl.setLight(true);
setLight(true);
public void commandAction(Command c, Displayable d){ if (c==cmdQuit) { destroyView(); logoff(); //StaticData sd=StaticData.getInstance(); //cf.saveToStorage(); Bombus.getInstance().notifyDestroyed(); return; } if (c==cmdMinimize) { Bomb...
LightControl.setLight(false);
setLight(false);
public void commandAction(Command c, Displayable d){ if (c==cmdQuit) { destroyView(); logoff(); //StaticData sd=StaticData.getInstance(); //cf.saveToStorage(); Bombus.getInstance().notifyDestroyed(); return; } if (c==cmdMinimize) { Bomb...
cf.lightState=false; cf.saveToStorage();
public void commandAction(Command c, Displayable d){ if (c==cmdQuit) { destroyView(); logoff(); //StaticData sd=StaticData.getInstance(); //cf.saveToStorage(); Bombus.getInstance().notifyDestroyed(); return; } if (c==cmdMinimize) { Bomb...
if (lightState==true) elfPlatform=true;
if (lightState==true || elfPlatform==true) elfPlatform=true;
public static boolean getKeyLockState() { boolean lightState=(System.getProperty("MPJCKEYL").startsWith("1"))?true:false; if (lightState==true) elfPlatform=true; return lightState; }
point.y = Double.parseDouble(coords[1]); point.z = Double.parseDouble(coords[2]);
point.y = Double.parseDouble(coords[1]); if (coords.length > 2) point.z = Double.parseDouble(coords[2]);
public Vector3d readPoint(DOMReader dom, Element pointElt) throws GMLException { Vector3d point = new Vector3d(); String coordsText = ""; String[] coords; // read SRS String srs = dom.getAttributeValue(pointElt, "@srsName"); point.setCrs(srs); try ...
public static void getUsedVariables(String aString, List list)
private static void getUsedVariables(String aString, String open, String close, List list)
public static void getUsedVariables(String aString, List list) { getUsedVariables(aString, UNIX_OPEN, UNIX_CLOSE, list); getUsedVariables(aString, WINDOWS_OPEN, WINDOWS_CLOSE, list); }
getUsedVariables(aString, UNIX_OPEN, UNIX_CLOSE, list); getUsedVariables(aString, WINDOWS_OPEN, WINDOWS_CLOSE, list);
if (aString==null) return; int p=0; while (p<aString.length()) { if (aString.substring(p).startsWith(open)) { int from = p+open.length(); int to = aString.indexOf(close, from+1); String variable = aString.substring(from, to); if (Const.indexOfString(variable, list)<0) list.add(variable); p=to; } p++; }
public static void getUsedVariables(String aString, List list) { getUsedVariables(aString, UNIX_OPEN, UNIX_CLOSE, list); getUsedVariables(aString, WINDOWS_OPEN, WINDOWS_CLOSE, list); }
dom.setElementValue(timeElt, "gml:timePosition", DateTimeFormat.formatIso(timeInfo.getStartTime(), 0));
dom.setElementValue(timeElt, "gml:timePosition", DateTimeFormat.formatIso(timeInfo.getStartTime(), zone));
public Element writeTime(DOMWriter dom, TimeInfo timeInfo) throws GMLException { Element timeElt; if (timeInfo.isTimeInstant()) { timeElt = dom.createElement("gml:TimeInstant"); if (timeInfo.isBeginNow() || timeInfo.isEndNow() || timeInfo.isBaseAtNow...
dom.setElementValue(timeElt, "gml:beginPosition", DateTimeFormat.formatIso(timeInfo.getStartTime(), 0));
dom.setElementValue(timeElt, "gml:beginPosition", DateTimeFormat.formatIso(timeInfo.getStartTime(), zone));
public Element writeTime(DOMWriter dom, TimeInfo timeInfo) throws GMLException { Element timeElt; if (timeInfo.isTimeInstant()) { timeElt = dom.createElement("gml:TimeInstant"); if (timeInfo.isBeginNow() || timeInfo.isEndNow() || timeInfo.isBaseAtNow...
dom.setElementValue(timeElt, "gml:endPosition", DateTimeFormat.formatIso(timeInfo.getStopTime(), 0));
dom.setElementValue(timeElt, "gml:endPosition", DateTimeFormat.formatIso(timeInfo.getStopTime(), zone));
public Element writeTime(DOMWriter dom, TimeInfo timeInfo) throws GMLException { Element timeElt; if (timeInfo.isTimeInstant()) { timeElt = dom.createElement("gml:TimeInstant"); if (timeInfo.isBeginNow() || timeInfo.isEndNow() || timeInfo.isBaseAtNow...
if (state) {
if (state==true) {
public static void setLight(boolean state) { if (state) { com.siemens.mp.game.Light.setLightOn(); } else { com.siemens.mp.game.Light.setLightOff(); } cf.lightState=state; cf.saveToStorage(); }
if (((XmlClassType) baseType).getTypeDefinition().getAnnotation(XmlRootElement.class) != null) { ref = new QName(getNamespace(), getName());
TypeDefinition baseTypeDef = ((XmlClassType) baseType).getTypeDefinition(); if (baseTypeDef.getAnnotation(XmlRootElement.class) != null) { RootElementDeclaration rootElement = new RootElementDeclaration((ClassDeclaration) baseTypeDef.getDelegate(), baseTypeDef); ref = new QName(rootElement.getTargetNamespace(), rootEle...
public QName getRef() { QName ref = super.getRef(); if (ref == null) { XmlTypeMirror baseType = getBaseType(); if (baseType.isAnonymous()) { if (((XmlClassType) baseType).getTypeDefinition().getAnnotation(XmlRootElement.class) != null) { ref = new QName(getNamespace(), getName()); ...
if (elfPlatform && lightState==1) {
if (elfPlatform==true && lightState==1) {
public void run() { try { if (getKeyLockState() && lightState==1) { if (elfPlatform && lightState==1) { LightControl.setLight(false); lightState=0; } } if (getKeyLockState(...
if (elfPlatform && lightState==0) {
if (elfPlatform==true && lightState==0) {
public void run() { try { if (getKeyLockState() && lightState==1) { if (elfPlatform && lightState==1) { LightControl.setLight(false); lightState=0; } } if (getKeyLockState(...
lightState=0;
public void commandAction(Command c, Displayable d){ if (c==cmdQuit) { destroyView(); logoff(); //StaticData sd=StaticData.getInstance(); //cf.saveToStorage(); Bombus.getInstance().notifyDestroyed(); return; } if (c==cmdMinimize) { Bomb...
if (lightState) elfPlatform=true;
if (lightState==true) elfPlatform=true;
public static boolean getKeyLockState() { boolean lightState=(System.getProperty("MPJCKEYL").startsWith("1"))?true:false; if (lightState) elfPlatform=true; return lightState; }
autoaway=new ChoiceGroup("Set", Choice.MULTIPLE); autoaway.append("Autostatus", null); boolean aa[]={ cf.setAutoStatus, }; this.aa=aa; autoaway.setSelectedFlags(aa); f.append(autoaway); autoAwayTime=new NumberField("Time to AutoStatus", cf.autoAwayTime, -12, 12); f.append(autoAwayTime);
public ConfigForm(Display display) { this.display=display; parentView=display.getCurrent(); cf=Config.getInstance(); f=new Form(SR.MS_OPTIONS); roster=new ChoiceGroup(SR.MS_ROSTER_ELEMENTS, Choice.MULTIPLE); roster.append(SR.MS_OFFLINE_CONTACTS, null); ...
cf.setAutoStatus=aa[0]; cf.autoAwayTime=autoAwayTime.getValue();
public void commandAction(Command c, Displayable d) { if (c==cmdOk) { roster.getSelectedFlags(ra); message.getSelectedFlags(mv); application.getSelectedFlags(ap); startup.getSelectedFlags(su); history.getSelectedFlags(his); cf.showOfflineContact...
XmlTypeMirror collectionTypeParameter = element.getCollectionTypeParameter(); if ((collectionTypeParameter != null) && (collectionTypeParameter != KnownXmlType.ANY_TYPE)) { XmlTypeMirror baseType = element.getBaseType(); if ((!collectionTypeParameter.getNamespace().equals(baseType.getNamespace())) && (!collectionTypePa...
XmlElements xmlElements = element.getAnnotation(XmlElements.class); if ((element.isCollectionType()) && (element.getBaseType() != KnownXmlType.ANY_TYPE) && (xmlElements != null) && (xmlElements.value() != null) && (xmlElements.value().length > 1)) { result.addError(element.getPosition(), "A parameterized collection acc...
public ValidationResult validateElement(Element element) { ValidationResult result = validateAccessor(element); XmlTypeMirror collectionTypeParameter = element.getCollectionTypeParameter(); if ((collectionTypeParameter != null) && (collectionTypeParameter != KnownXmlType.ANY_TYPE)) { XmlTypeMirror baseT...
"The spec is unclear as to why this should be allowed because you could just use an @XmlType annotation to accomplish the same thing with more clarity.");
"The spec is unclear as to why this should be allowed because you could just use an @XmlElement annotation to accomplish the same thing with more clarity.");
public ValidationResult validateElement(Element element) { ValidationResult result = validateAccessor(element); XmlTypeMirror collectionTypeParameter = element.getCollectionTypeParameter(); if ((collectionTypeParameter != null) && (collectionTypeParameter != KnownXmlType.ANY_TYPE)) { XmlTypeMirror baseT...
"The spec is unclear as to why this should be allowed because you could just use an @XmlType annotation to accomplish the same thing with more clarity.");
"The spec is unclear as to why this should be allowed because you could just use an @XmlElement annotation to accomplish the same thing with more clarity.");
public ValidationResult validateElementRef(ElementRef elementRef) { ValidationResult result = validateAccessor(elementRef); if (elementRef.getChoices().isEmpty()) { XmlTypeMirror baseType = elementRef.getBaseType(); result.addError(elementRef.getPosition(), "No root elements found for " + new QName(ba...
cform=qry; cform.getChildBlocks().removeAllElements();
if (ch.getTagName().equals("remove")) { cform=qry; cform.getChildBlocks().removeAllElements(); } cform.addChild(ch);
private void sendForm(String id){ JabberDataBlock req=new Iq(service, Iq.TYPE_SET, id); JabberDataBlock qry=req.addChild(childName,null); qry.setNameSpace(xmlns); //qry.setAttribute("action", "complete"); qry.setAttribute("node", node); qry.setAttribute("sessionid", session...
cform.addChild(ch);
private void sendForm(String id){ JabberDataBlock req=new Iq(service, Iq.TYPE_SET, id); JabberDataBlock qry=req.addChild(childName,null); qry.setNameSpace(xmlns); //qry.setAttribute("action", "complete"); qry.setAttribute("node", node); qry.setAttribute("sessionid", session...
error.addCommand(new Command(SR.MS_OK, Command.BACK, 1)); display.setCurrent(error, display.getCurrent());
error.setTimeout(5*1000); display.setCurrent(error, this);
public void errorLog(String s){ if (s==null) return; if (s.length()==0) return; Alert error=new Alert(SR.MS_ERROR_, s, null, null); error.addCommand(new Command(SR.MS_OK, Command.BACK, 1)); //error.setTimeout(30000); display.setCurrent(error, display.getCurrent()); Msg m=n...
public static final int getType(String desc)
public int getType()
public static final int getType(String desc) { String d[] = JobEntryInterface.type_desc; for (int i=1;i< d.length;i++) { if (d[i].equalsIgnoreCase(desc)) return i; } d=JobEntryInterface.type_desc_long; for (int i=1;i< d.length;i++) { if (d[i].equalsIgnoreCase(desc)) return i; } return JobEntryInterface.TY...
String d[] = JobEntryInterface.type_desc; for (int i=1;i< d.length;i++) { if (d[i].equalsIgnoreCase(desc)) return i; } d=JobEntryInterface.type_desc_long; for (int i=1;i< d.length;i++) { if (d[i].equalsIgnoreCase(desc)) return i; } return JobEntryInterface.TYPE_JOBENTRY_NONE;
return type;
public static final int getType(String desc) { String d[] = JobEntryInterface.type_desc; for (int i=1;i< d.length;i++) { if (d[i].equalsIgnoreCase(desc)) return i; } d=JobEntryInterface.type_desc_long; for (int i=1;i< d.length;i++) { if (d[i].equalsIgnoreCase(desc)) return i; } return JobEntryInterface.TY...
ColorForm.reloadSkin();
ColorForm.COLORS[paramName]=Integer.parseInt(val.substring(2),16);
public void commandAction(Command c, Displayable d) { if (c==cmdCancel) { exit = true; destroyView(); return; } if (c==cmdOk) { String reds=Integer.toHexString(red); if (reds.length()==1) reds="0"+reds; String greens=Integer.toHexString(green); ...
ColorForm.reloadSkin();
protected void keyPressed(int key) { switch (key) { case -59: case '2': timer = 7; dy = 1; movePoint(); break; case -60: case '8': timer = 7; dy = -1; movePoint(); break; case -61: case '4': cpos -= 1; if (cpos < 0) cpos = 2; repaint(); break; case -62: case '6': cp...
if(formatElts.getLength()==0) { formatElts = capsReader.getElements(offeringElt, "responseFormat"); } int listSize = formatElts.getLength();
protected void checkQueryFormat(SOSQuery query, DOMReader capsReader) throws SOSException { Element offeringElt = getOffering(query.getOffering(), capsReader); NodeList formatElts = capsReader.getElements(offeringElt, "resultFormat"); for (int i=0; i<formatElts.getLength(); i++) { String formatString = capsR...
if(timeElt == null) { timeElt = capsReader.getElement(offeringElt, "time/*"); if(timeElt == null) throw new SOSException("Internal Error: Invalid Time in Capabilities Document"); }
protected void checkQueryTime(SOSQuery query, DOMReader capsReader) throws SOSException { Element offeringElt = getOffering(query.getOffering(), capsReader); Element timeElt = capsReader.getElement(offeringElt, "eventTime/*"); TimeInfo capsTime = null; try { GMLTimeReade...
PrefixMethod prefixMethod = new PrefixMethod() { @Override protected String lookupPrefix(String namespace) { if (namespace == null) { return "null"; } return "ns" + String.valueOf(namespace.hashCode()); } }; model.put("prefix", prefixMethod);
public String invokeLibraryMethod(String library, String methodName, HashMap<String, Object> args) throws IOException, TemplateException { Configuration configuration = new Configuration(); StringTemplateLoader loader = new StringTemplateLoader(); configuration.setTemplateLoader(loader); configuration.set...
g.setColor(Colors.PGS_BGND);
g.setColor(Colors.BLK_BGND);
public void paint(Graphics g){ if (pos==-1) return; width=getWidth(); height=getHeight(); Font f=FontCache.getRosterNormalFont(); int xp=pos*width/100; int xt=width/2; int h=f.getHeight()+1; int y=height-h-2; g.setColor(Colors.PGS_BGND);...
public static int draw(Graphics g, String str) { int x=0; int y=0; int w= g.getClipWidth(); int ii, pointS = 0, len = str.length();
public static void draw(Graphics g, String txt) { String text=txt.trim();
public static int draw(Graphics g, String str) { int x=0; int y=0; int w= g.getClipWidth(); int ii, pointS = 0, len = str.length(); Font f=FontCache.getBalloonFont(); g.setFont(f); g.setColor(Colors.BALLOON_INK); for ( ii = 0; ii >= 0; ...
for ( ii = 0; ii >= 0; ){ if ( getLen(str) > w ) { g.drawString(str.substring(0, pointS), x, y, Graphics.TOP|Graphics.LEFT); str = str.substring(pointS + 1); y += f.getHeight(); } g.drawString(str, x, y, Graphics.TOP|Graphics.LEFT); return y + f.getHeight(); } return y;
g.fillRect(2, 0, width, height); g.setColor(Colors.BALLOON_BGND); g.fillRect(3, 1, width-2, height-2); g.setColor(Colors.BALLOON_INK); g.drawString(text, 5, 2, Graphics.TOP | Graphics.LEFT);
public static int draw(Graphics g, String str) { int x=0; int y=0; int w= g.getClipWidth(); int ii, pointS = 0, len = str.length(); Font f=FontCache.getBalloonFont(); g.setFont(f); g.setColor(Colors.BALLOON_INK); for ( ii = 0; ii >= 0; ...
g.setColor(Colors.BALLOON_BGND);
g.setColor(Colors.BAR_BGND); g.fillRect(0, 0, g.getClipWidth(), g.getClipHeight()); paint(g); /* g.setColor(Colors.BALLOON_BGND);
public void drawItem(Graphics g, int i, boolean b) { g.setColor(Colors.BALLOON_BGND); g.fillRect(0, 0, width, height); //TextField nickField=null; //nickField=new TextField("text", "text", 32, TextField.ANY); g.setColor(Colors.BALLOON_INK); g.drawString("test", (widt...
*/
public void drawItem(Graphics g, int i, boolean b) { g.setColor(Colors.BALLOON_BGND); g.fillRect(0, 0, width, height); //TextField nickField=null; //nickField=new TextField("text", "text", 32, TextField.ANY); g.setColor(Colors.BALLOON_INK); g.drawString("test", (widt...
form.append("\nCopyright (c) 2005-2006, Eugene Stahov (evgs),\n");
form.append("\nCopyright (c) 2005-2006, Eugene Stahov (evgs), ad(modification)\n");
public InfoWindow(Display display) { this.display=display; parentView=display.getCurrent(); form=new Form(SR.MS_ABOUT); form.addCommand(new Command(SR.MS_CLOSE, Command.BACK, 99)); form.append("Bombus v"+Version.version+"\nMobile Jabber client\n"); form.append(Versi...
form.setCommandListener(this); display.setCurrent(form);
public InfoWindow(Display display) { this.display=display; parentView=display.getCurrent(); form=new Form(SR.MS_ABOUT); form.addCommand(new Command(SR.MS_CLOSE, Command.BACK, 99)); form.append("Bombus v"+Version.version+"\nMobile Jabber client\n"); form.append(Versi...
public AuthFailure(ParameterList params) throws MessageException
public AuthFailure(boolean compatibility)
public AuthFailure(ParameterList params) throws MessageException { super(params); }
super(params);
set("openid.mode", MODE_CANCEL); if (! compatibility) set("openid.ns", OPENID2_NS);
public AuthFailure(ParameterList params) throws MessageException { super(params); }
public ProfileMeta(Repository rep, long id_profile) throws KettleException
public ProfileMeta(String name, String description)
public ProfileMeta(Repository rep, long id_profile) throws KettleException { try { Row r = rep.getProfile(id_profile); if (r!=null) { setID(id_profile); name = r.searchValue("NAME").getString(); description = r.searchValue("DESCRIPTION").getString(); long pid[] = rep.getPermissionIDs(id_profil...
try { Row r = rep.getProfile(id_profile); if (r!=null) { setID(id_profile); name = r.searchValue("NAME").getString(); description = r.searchValue("DESCRIPTION").getString(); long pid[] = rep.getPermissionIDs(id_profile); permissions = new ArrayList(); for (int i=0;i<pid.length;i++) { PermissionMeta pi = new Permis...
this.name = name; this.description = description; this.permissions = new ArrayList();
public ProfileMeta(Repository rep, long id_profile) throws KettleException { try { Row r = rep.getProfile(id_profile); if (r!=null) { setID(id_profile); name = r.searchValue("NAME").getString(); description = r.searchValue("DESCRIPTION").getString(); long pid[] = rep.getPermissionIDs(id_profil...
public Value replace(String repl, String with) { if (isNull()) return this; if (getString()==null) { setNull(); } else { setValue( Const.replace(getString(), repl, with) ); } return this; }
public Value replace(Value repl, Value with) { return replace(repl.getString(), with.getString()); }
public Value replace(String repl, String with) { if (isNull()) return this; if (getString()==null) { setNull(); } else { setValue( Const.replace(getString(), repl, with) ); } return this; }
String predicate = tag.getTagName().toLowerCase().replace(' ','_'); writer.write(" exif:" + predicate + " \"" + tag.getDescription() + "\" ;\n");
String predicate = tag.getTagName().toLowerCase().replaceAll("[ /()]","_"); writer.write(" exif:" + predicate + " \"" + tag.getDescription().replaceAll("\"","\\\"").replaceAll("\n","\\\\n") + "\" ;\n");
void processFolder(File file, Writer writer) { if (file.isDirectory()) { File[] files = file.listFiles(); for (int i = 0; i < files.length; i++) { processFolder(files[i], writer); } } else { if (file.getName().toLowerCase().endsWith(".jpg") ||...
setLight(true);
public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu...
setLight(false);
public Roster(Display display /*, boolean selAccount*/) { super(); setProgress(24); //setTitleImages(StaticData.getInstance().rosterIcons); this.display=display; cf=Config.getInstance(); autoAwayTime=cf.autoAwayTime*60; setAutoStatus=cf.setAu...
if ((Version.getPlatformName().indexOf("Nokia") > -1) || (Version.getPlatformName().indexOf("SonyE") > -1) || (Version.getPlatformName().indexOf("j2me") > -1)) {
if ((Version.getPlatformName().indexOf("Nokia") > -1) || (Version.getPlatformName().indexOf("SonyE") > -1)) {
protected void keyPressed(int keyCode) { super.keyPressed(keyCode); if (keyCode==SE_CLEAR) { Contact c=(Contact)getFocusedObject(); if (c.getGroupType()!=Groups.TYPE_TRANSP && c.getGroupType()!=Groups.TYPE_SELF && c.getGroupType()!=Groups.TYPE_SEARCH_RESULT && c.origin<Co...
confMessageCount=inputStream.readInt();
protected void loadFromStorage(){ try { DataInputStream inputStream=NvStorage.ReadFileRecord("config", 0); accountIndex = inputStream.readInt(); showOfflineContacts=inputStream.readBoolean(); fullscreen=inputStream.readBoolean(); def_profile = inputStream.readInt(); smiles=inputStream.readBo...
outputStream.writeInt(confMessageCount);
public void saveToStorage(){ DataOutputStream outputStream=NvStorage.CreateDataOutputStream(); try { outputStream.writeInt(accountIndex); outputStream.writeBoolean(showOfflineContacts); outputStream.writeBoolean(fullscreen); outputStream.writeInt(def_profile); outputStream.writeBoolean(smiles)...
if (c==cmdArchive) { new ArchiveList(display, null); }
if (c==cmdArchive) { new ArchiveList(display, null, -1); }
public void commandAction(Command c, Displayable d){ if (c==cmdQuit) { destroyView(); logoff(); //StaticData sd=StaticData.getInstance(); //cf.saveToStorage(); Bombus.getInstance().notifyDestroyed(); return; } if (c==cmdMinimize) { Bomb...
new AlertBox(SR.MS_ERROR_, s, null, display, null);
public void errorLog(String s){ if (s==null) return; if (s.length()==0) return; new AlertBox(SR.MS_ERROR_, s, null, display, null); /*Alert error=new Alert(SR.MS_ERROR_, s, null, null); error.setTimeout(30000); error.addCommand(new Command(SR.MS_OK, Command.BACK, 1)); ...
if ((Version.getPlatformName().indexOf("Nokia") > -1) || (Version.getPlatformName().indexOf("SonyE") > -1) || (Version.getPlatformName().indexOf("j2me") > -1)) {
if ((Version.getPlatformName().indexOf("Nokia") > -1) || (Version.getPlatformName().indexOf("SonyE") > -1)) {
public void userKeyPressed(int keyCode){ if (keyCode==KEY_NUM0 /* || keyCode==MOTOE680_REALPLAYER CONFLICT WITH ALCATEL. (platform=J2ME)*/) { if (messageCount==0) return; Object atcursor=getFocusedObject(); Contact c=null; if (atcursor instanceof Contact) c=(Conta...
int listSize = timeElts.getLength();
if(timeElts.getLength()==0) { timeElts = dom.getElements(parentElement, "time/*"); if(timeElts.getLength()==0) throw new GMLException("SOS Servlet Error: GML Time is invalid"); } int listSize = timeElts.getLength();
protected void getTimeList(Element parentElement, SOSLayerCapabilities layerCaps) throws GMLException { NodeList timeElts = dom.getElements(parentElement, "eventTime/*"); int listSize = timeElts.getLength(); ArrayList<TimeInfo> timeList = new ArrayList<TimeInfo>(listSize); layerCaps.setT...
else if (loader.findResource("net/sf/enunciate/modules/xml/XMLDeploymentModule.class") != null) {
else if (loader.findResource(ServletContext.class.getName().replace('.', '/').concat(".class")) != null) {
protected boolean excludeLibrary(File file) throws IOException { List<String> warLibs = getWarLibs(); if ((warLibs != null) && (!warLibs.isEmpty())) { //if the war libraries were explicitly declared, don't exclude anything. return false; } //instantiate a loader with this library only in its pat...
else if (loader.findResource(XFireDeploymentModule.class.getName().replace('.', '/').concat(".class")) != null) {
else if (Service.providers(DeploymentModule.class, loader).hasNext()) {
protected boolean excludeLibrary(File file) throws IOException { List<String> warLibs = getWarLibs(); if ((warLibs != null) && (!warLibs.isEmpty())) { //if the war libraries were explicitly declared, don't exclude anything. return false; } //instantiate a loader with this library only in its pat...
public void invokeJavac(String classpath, File compileDir, List<String> additionalArgs, String[] sourceFiles) throws EnunciateException { List<String> args = new ArrayList<String>(); args.add("-cp"); args.add(classpath); if (isDebug()) { args.add("-verbose");
public void invokeJavac(File compileDir, String[] sourceFiles) throws EnunciateException { String classpath = getClasspath(); if (classpath == null) { classpath = System.getProperty("java.class.path");
public void invokeJavac(String classpath, File compileDir, List<String> additionalArgs, String[] sourceFiles) throws EnunciateException { List<String> args = new ArrayList<String>(); args.add("-cp"); args.add(classpath); if (isDebug()) { args.add("-verbose"); } args.add("-d"); args.add(compi...
args.add("-d"); args.add(compileDir.getAbsolutePath()); args.addAll(additionalArgs); args.addAll(Arrays.asList(sourceFiles)); if (isDebug()) { System.out.println("Invoking Javac with arguments: "); for (String arg : args) { System.out.println(arg); } } int procCode = com.sun.tools.javac.Main.compile(args.toArray(new ...
invokeJavac(classpath, compileDir, sourceFiles);
public void invokeJavac(String classpath, File compileDir, List<String> additionalArgs, String[] sourceFiles) throws EnunciateException { List<String> args = new ArrayList<String>(); args.add("-cp"); args.add(classpath); if (isDebug()) { args.add("-verbose"); } args.add("-d"); args.add(compi...
Roster.isAway=false;
public void run(){ int status=getSel().getImageIndex(); try { StaticData.getInstance().roster.sendPresence(status); } catch (Exception e) { e.printStackTrace(); } }