rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
ImageList menuIcon=new ImageList("/images/menu.png", 4, ICONS_IN_ROW); menuIcons=new Vector(30); menuIcons.addElement(menuIcon); | private RosterIcons() { super("/images/skin.png", ICONS_IN_COL, ICONS_IN_ROW); transports=new StringLoader().hashtableLoader("/images/transports.txt"); //new Hashtable(); transpSkins=new Vector(transports.size()); transports.put("conference", new Integer(ICON_GROUPCHAT_INDEX)); ... | |
if (index>0x0ffffff) | if (index>66000) { | public void drawImage(Graphics g, int index, int x, int y) { if (index>0x0ffffff) ((ImageList)transpSkins.elementAt( (index>>24) -1 )).drawImage(g, index & 0xff, x, y); else super.drawImage(g, index, x, y); } |
else super.drawImage(g, index, x, y); | } else if(index<66000 && index>1000) { ((ImageList)menuIcons.elementAt(0)).drawImage(g, index & 0xff, x, y); } else super.drawImage(g, index, x, y); | public void drawImage(Graphics g, int index, int x, int y) { if (index>0x0ffffff) ((ImageList)transpSkins.elementAt( (index>>24) -1 )).drawImage(g, index & 0xff, x, y); else super.drawImage(g, index, x, y); } |
public Value multiply(Value v) throws KettleValueException { if ((v.isString() && isNumeric()) || (v.isNumeric() && isString())) { StringBuffer s; String append=""; int n; if (v.isString()) { s=new StringBuffer(v.getString()); append=v.getString(); n=(int)getInteger(); } else { s=new StringBuffer(getString()); ap... | public Value multiply(BigDecimal v) throws KettleValueException { return multiply(new Value("tmp", v)); } | public Value multiply(Value v) throws KettleValueException { // a number and a string! if ((v.isString() && isNumeric()) || (v.isNumeric() && isString())) { StringBuffer s; String append=""; int n; if (v.isString()) { s=new StringBuffer(v.getString()); append=v.getString(); n=(int)getIntege... |
public PackedSymbolList(Packing packing, Symbol [] symbols, int length, Alphabet alfa) throws IllegalAlphabetException,IllegalArgumentException { if(packing.getAlphabet() != alfa) { throw new IllegalAlphabetException( "Can't pack with alphabet " + packing.getAlphabet() + " and symbol list " + alfa ); } if (symbols.... | public PackedSymbolList(Packing packing, long[] syms, int length) { this.symsPerElement = (byte) (bitsPerElement / packing.wordSize()); this.packing = packing; this.syms = syms; this.length = length; this.mask = calcMask(packing); wordsize = packing.wordSize(); | public PackedSymbolList(Packing packing, Symbol [] symbols, int length, Alphabet alfa) throws IllegalAlphabetException,IllegalArgumentException { // verify that the alphabet is one I can deal with. if(packing.getAlphabet() != alfa) { throw new IllegalAlphabetException( "Can't pack with alphabet " +... |
sd.roster.setLight(false); new KeyBlock(display, getTitleItem(), cf.keyLock, cf.ghostMotor, true); | if (isSiemens) { sd.roster.setLight(false); new KeyBlock(display, getTitleItem(), cf.keyLock, cf.ghostMotor, true); return; } | private void key(int keyCode) { if (keyCode==-22) { sd.roster.setLight(false); new KeyBlock(display, getTitleItem(), cf.keyLock, cf.ghostMotor, true); } if (keyCode==-4) { if (Version.getPlatformName().indexOf("SIE") > -1) { ... |
if (Version.getPlatformName().indexOf("SIE") > -1) { | if (isSiemens) { | private void key(int keyCode) { if (keyCode==-22) { sd.roster.setLight(false); new KeyBlock(display, getTitleItem(), cf.keyLock, cf.ghostMotor, true); } if (keyCode==-4) { if (Version.getPlatformName().indexOf("SIE") > -1) { ... |
if (Version.getPlatformName().indexOf("SIE") == -1) { | if (!isSiemens) { | private void key(int keyCode) { if (keyCode==-22) { sd.roster.setLight(false); new KeyBlock(display, getTitleItem(), cf.keyLock, cf.ghostMotor, true); } if (keyCode==-4) { if (Version.getPlatformName().indexOf("SIE") > -1) { ... |
form.append("Bombus v"+Version.version+"\nMobile Jabber client\n"); | form.append("BombusMod v"+Version.version+"\nMobile Jabber client\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... |
cmdRecent=new Command("Recent", Command.ITEM, 1); | cmdRecent=new Command(SR.MS_RECENT, Command.ITEM, 1); | public TextFieldCombo(String label, String value, int maxlen, int constraints, String id, Display display) { super(label, null, maxlen, constraints); this.display=display; this.label=label; this.id="mru-"+id; loadRecentList(); try { if (value==null)... |
protected int getTitleBGndRGB() {return Colors.HEADER_BGND;} | protected int getTitleBGndRGB() {return Colors.BAR_BGND;} | protected int getTitleBGndRGB() {return Colors.HEADER_BGND;} |
protected int getTitleRGB() {return Colors.HEADER_INK;} | protected int getTitleRGB() {return Colors.BAR_INK;} | protected int getTitleRGB() {return Colors.HEADER_INK;} |
return font.getHeight(); | return this.messageViewer.getHeight(); | public int getVHeight() { return font.getHeight(); } |
TreeSet<String> namespaces = new TreeSet<String>(); | HashSet<String> namespaces = new HashSet<String>(); | public Set<String> getReferencedNamespaces() { TreeSet<String> namespaces = new TreeSet<String>(); Collection<WebMessage> messages = getMessages(); for (WebMessage message : messages) { for (WebMessagePart part : message.getParts()) { namespaces.add(part.getElementQName().getNamespaceURI(/**/)); ... |
System.out.println("\n\nRANDOM SEED " + seed + "\n"); | System.out.println("RANDOM SEED " + seed + " : " + getName()); | protected void setUp() throws Exception { super.setUp(); seed = null != rnd ? rnd.nextLong() : System.currentTimeMillis(); System.out.println("\n\nRANDOM SEED " + seed + "\n"); rnd = new Random(seed); refDate = new DTBuilder(1900 + rnd.nextInt(200), 1, rnd.nextInt(366) + 1) .toDate(); } |
return getPropertyOrder() == null ? "all" : "sequence"; | return "sequence"; | public String getCompositorName() { return getPropertyOrder() == null ? "all" : "sequence"; } |
String[] dimensionsStrings = readOption("dimensions").split(" "); Dimensions[] dimensions = new Dimensions[dimensionsStrings.length]; | StringTokenizer dimensionsTokens = new StringTokenizer(readOption("dimensions")); Dimensions[] dimensions = new Dimensions[dimensionsTokens.countTokens()]; | public Dimensions[] getDimensions() { String[] dimensionsStrings = readOption("dimensions").split(" "); Dimensions[] dimensions = new Dimensions[dimensionsStrings.length]; for (int i = 0; i < dimensions.length; i++) dimensions[i] = new Dimensions(dimensionsStrings[i]); return dimensions; } |
dimensions[i] = new Dimensions(dimensionsStrings[i]); | dimensions[i] = new Dimensions(dimensionsTokens.nextToken()); | public Dimensions[] getDimensions() { String[] dimensionsStrings = readOption("dimensions").split(" "); Dimensions[] dimensions = new Dimensions[dimensionsStrings.length]; for (int i = 0; i < dimensions.length; i++) dimensions[i] = new Dimensions(dimensionsStrings[i]); return dimensions; } |
if (rzn.length()!=0) { item.addChild("reason", myNick+": "+rzn); | String Nick=(myNick==null)?myNick+": ":myNick; if (rzn.length()!=0 && myNick!=null) { item.addChild("reason",Nick+rzn); } else { item.addChild("reason", Nick); | private void setMucMod(){ JabberDataBlock iq=new Iq(victim.jid.getBareJid(), Iq.TYPE_SET, "itemmuc"); JabberDataBlock query=iq.addChild("query", null); query.setNameSpace("http://jabber.org/protocol/muc#admin"); //TODO: separate usecases to muc#owner, muc#admin and muc#moderator ... |
return createProxy( getDelegate().getClass().getInterfaces() ); | return createProxy( ProxyUtils.getAllInterfaces( getDelegate().getClass() ) ); | public Object createProxy() { return createProxy( getDelegate().getClass().getInterfaces() ); } |
public Value num2str(String arg0, String arg1, String arg2, String arg3) throws KettleValueException { if (isNull()) { setType(VALUE_TYPE_STRING); } else { if (getType()==VALUE_TYPE_NUMBER || getType()==VALUE_TYPE_INTEGER) { NumberFormat nf = NumberFormat.getInstance(); DecimalFormat df = (DecimalForm... | public Value num2str() throws KettleValueException { return num2str(null, null, null, null); } | public Value num2str(String arg0, String arg1, String arg2, String arg3) throws KettleValueException { if (isNull()) { setType(VALUE_TYPE_STRING); } else { // Number to String conversion... if (getType()==VALUE_TYPE_NUMBER || getType()==VALUE_TYPE_INTEGER) { NumberFormat nf = NumberFormat.getI... |
if (keyCode=='3') new Bookmarks(display, null); | if (keyCode=='3') searchGroup(-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... |
public AssociationError(ParameterList params) throws MessageException | protected AssociationError(String msg, AssociationSessionType type) | public AssociationError(ParameterList params) throws MessageException { super(params); } |
super(params); | super(msg); set("ns", OPENID2_NS); set("error_code", ASSOC_ERR); set("session_type", type.getSessionType()); set("assoc_type", type.getAssociationType()); | public AssociationError(ParameterList params) throws MessageException { super(params); } |
public DirectError(String msg) | protected DirectError(String msg) | public DirectError(String msg) { this(msg, false); } |
String namespace = ""; | String namespace = null; | public String getNamespace() { String namespace = ""; if (xmlSchema != null) { namespace = xmlSchema.namespace(); } return namespace; } |
protected String convert(TypeMirror typeMirror) { | protected String convert(TypeMirror typeMirror) throws TemplateModelException { | protected String convert(TypeMirror typeMirror) { String conversion; if (typeMirror instanceof DeclaredType) { conversion = convert(((DeclaredType) typeMirror).getDeclaration()); } else if (typeMirror instanceof ArrayType) { conversion = convert(((ArrayType) typeMirror).getComponentType()); }... |
message.append("Classic Chat", null); | 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); ... | |
message.append("Classic Chat", null); | 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); ... | |
Config cf=Config.getInstance(); | private void switchAccount(boolean login){ if (!login) parentView=StaticData.getInstance().roster; destroyView(); cf.accountIndex=cursor; cf.saveToStorage(); Account.loadAccount(login); } | |
} else if (a!=null && launch){ sd.roster.logoff(); sd.roster.resetRoster(); sd.roster.sendPresence(Presence.PRESENCE_ONLINE); | if (launch) sd.roster.sendPresence(Presence.PRESENCE_ONLINE); | public static Account loadAccount(boolean launch){ StaticData sd=StaticData.getInstance(); Account a=sd.account=Account.createFromStorage(Config.getInstance().accountIndex); if (a!=null) { sd.roster.logoff(); sd.roster.resetRoster(); } else if (a!=null && launch){ sd.roster.logoff()... |
typeDef.getTargetNamespace(), | typeDef.getTargetNamespace() == null ? "" : typeDef.getTargetNamespace(), | protected EnunciateFreemarkerModel getRootModel() throws TemplateModelException { EnunciateFreemarkerModel model = (EnunciateFreemarkerModel) super.getRootModel(); model.put("prefix", new PrefixMethod()); model.put("qname", new QNameMethod()); AnnotationProcessorEnvironment env = Context.getCurrentEnviron... |
selectionList.addCommand(cmdSaveSkin); | public ColorForm(Display display) { super(); this.display=display; parentView=display.getCurrent(); reloadSkin(); selectionList = new List("Colors", List.IMPLICIT, NAMES, null); selectionList.addCommand(cmdOk); selectionList.add... | |
if (c==cmdSaveSkin) new Browser(null,display, this, true); | public void commandAction(Command c, Displayable d) { int pos = selectionList.getSelectedIndex(); if (c==cmdCancel) { destroyView(); return; } if (c==cmdOk) { if (pos != NAMES.length - 1) { try { if (!NAMES[po... | |
if (keyCode==-22) { sd.roster.setLight(false); new KeyBlock(display, getTitleItem(), cf.keyLock, cf.ghostMotor, true); } | private void key(int keyCode) { if (keyCode==-4) { if (Version.getPlatformName().indexOf("SIE") > -1) { destroyView(); return; } } if (keyCode==702) { if ... | |
int in=StaticData.getInstance().roster.theStream.getBytesIn(); int out=StaticData.getInstance().roster.theStream.getBytesOut(); | int in=sd.roster.theStream.getBytesIn(); int out=sd.roster.theStream.getBytesOut(); | public void paint(Graphics graphics) { width=getWidth(); // patch for SE height=getHeight(); Graphics g=(offscreen==null)? graphics: offscreen.getGraphics(); fullMode=Config.getInstance().isbottom; switch (fullMode) { case 0: paintTop=false; paintBottom=false; break; ... |
lightState=inputStream.readBoolean(); | lightState=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.writeBoolean(lightState); | outputStream.writeInt(lightState); | public void saveToStorage(){ DataOutputStream outputStream=NvStorage.CreateDataOutputStream(); try { outputStream.writeInt(accountIndex); outputStream.writeBoolean(showOfflineContacts); outputStream.writeBoolean(fullscreen); outputStream.writeInt(def_profile); outputStream.writeBoolean(smiles)... |
public ExplicitJAXWSAnnotationServiceFactory(String typeSetId, Map requestWrappers, Map responseWrappers) throws IOException, ClassNotFoundException { | public ExplicitJAXWSAnnotationServiceFactory(String typeSetId) throws IOException, ClassNotFoundException { | public ExplicitJAXWSAnnotationServiceFactory(String typeSetId, Map requestWrappers, Map responseWrappers) throws IOException, ClassNotFoundException { super( ExplicitWebAnnotations.readFrom(ExplicitJAXWSAnnotationServiceFactory.class.getResourceAsStream("/" + typeSetId + ".annotations")), XFireFactory.ne... |
this.requestWrappers = requestWrappers; this.responseWrappers = responseWrappers; | this.annotations = ExplicitWebAnnotations.readFrom(ExplicitJAXWSAnnotationServiceFactory.class.getResourceAsStream("/" + typeSetId + ".annotations")); | public ExplicitJAXWSAnnotationServiceFactory(String typeSetId, Map requestWrappers, Map responseWrappers) throws IOException, ClassNotFoundException { super( ExplicitWebAnnotations.readFrom(ExplicitJAXWSAnnotationServiceFactory.class.getResourceAsStream("/" + typeSetId + ".annotations")), XFireFactory.ne... |
isoStopTime = DateTimeFormat.formatIso(stopTime, 0); } | protected void checkQueryTime(SOSQuery query, DOMReader capsReader) throws SOSException { Element offeringElt = getOffering(query.getOffering(), capsReader); // check if requested time period is valid String startAtt = capsReader.getAttributeValue(offeringElt, "eventTime/TimePeriod/beginPosition/indeterminatePo... | |
addCommand(cmdAdvJoin); | public Bookmarks(Display display, BookmarkItem toAdd) { super (); if (getItemCount()==0 && toAdd==null) { new ConferenceForm(display); return; } setTitleItem(new Title(2, null, SR.MS_BOOKMARKS)); this.toAdd=toAdd; //bookmarks=roster.boo... | |
if (c==cmdNew) new ConferenceForm(display); | if (c==cmdAdvJoin) { BookmarkItem join=(BookmarkItem)getFocusedObject(); if (join==null) return; if (join.isUrl) return; new ConferenceForm(display, join.toString(), join.password); } if (c==cmdNew) new ConferenceForm(display); | public void commandAction(Command c, Displayable d){ if (c==cmdCancel) exitBookmarks(); if (c==cmdJoin) eventOk(); if (c==cmdNew) new ConferenceForm(display); //if (c==cmdRfsh) loadBookmarks(); if (c==cmdDel) deleteBookmark(); if (c==cmdDisco) new ServiceDiscovery(display, ((Book... |
new ConferenceForm(display, join.toString(), join.password); | StaticData sd=StaticData.getInstance(); ConferenceGroup grp=sd.roster.initMuc(join.toString(), join.password); JabberDataBlock x=new JabberDataBlock("x", null, null); x.setNameSpace("http: sd.roster.sendPresence(join.toString(), null, x); sd.roster.reEnumRoster(); display.setCurrent(roster); | public void eventOk(){ BookmarkItem join=(BookmarkItem)getFocusedObject(); if (join==null) return; if (join.isUrl) return; new ConferenceForm(display, join.toString(), join.password); } |
if (startMessage) { if (inputbox!=null) { inputbox.sendKey(key); } else { InputBox inputbox=new InputBox("", key); setInputBoxItem(inputbox); } } else { this.inputbox=null; | if (Config.getInstance().altInput) { if (startMessage) { if (inputbox!=null) { inputbox.sendKey(key); } else { InputBox inputbox=new InputBox("", key); setInputBoxItem(inputbox); } } else { this.inputbox=null; } | private void updateBottom(int key){ if (startMessage) { if (inputbox!=null) { inputbox.sendKey(key); } else { InputBox inputbox=new InputBox("", key); setInputBoxItem(inputbox); } } else { ... |
if (altInput) { | public void userKeyPressed(int keyCode) { if (!startMessage) { super.userKeyPressed(keyCode); if (keyCode==KEY_NUM9) nextContact(); if (keyCode==KEY_STAR) { if (altInput) { startMessage=true; updateBottom(keyCode); ... | |
} | public void userKeyPressed(int keyCode) { if (!startMessage) { super.userKeyPressed(keyCode); if (keyCode==KEY_NUM9) nextContact(); if (keyCode==KEY_STAR) { if (altInput) { startMessage=true; updateBottom(keyCode); ... | |
this.bitMapFont = BitMapFont.getInstance("/fonts/aston.bmf"); this.messageViewer = this.bitMapFont.getViewer("Hello World!"); int availableWidth = getWidth() - 20; int padding = 2; int textOrientation = Graphics.LEFT; this.messageViewer.layout( availableWidth, availableWidth, padding, textOrientation ); | public InputBox() { } | |
try | synchronized( classLoaders ) | public static CtClass resolve( Class clazz ) { try { return classPool.get( ProxyUtils.getJavaClassName( clazz ) ); } catch( NotFoundException e ) { throw new ObjectProviderException( "Unable to find class " + clazz.getName() + " in defau... |
return classPool.get( ProxyUtils.getJavaClassName( clazz ) ); } catch( NotFoundException e ) { throw new ObjectProviderException( "Unable to find class " + clazz.getName() + " in default Javassist class pool.", e ); | try { final ClassLoader loader = clazz.getClassLoader(); if( loader != null && !classLoaders.contains( loader ) ) { classLoaders.add( loader ); classPool.appendClassPath( new LoaderClassPath( loader ) ); } return classPool.get( ProxyUtils.getJavaClassName( clazz ) ); } catch( NotFoundException e ) { throw new ObjectPro... | public static CtClass resolve( Class clazz ) { try { return classPool.get( ProxyUtils.getJavaClassName( clazz ) ); } catch( NotFoundException e ) { throw new ObjectProviderException( "Unable to find class " + clazz.getName() + " in defau... |
public SmilePicker(Display display, MessageEdit me) { super(display); this.me=me; il = SmilesIcons.getInstance(); | public SmilePicker(Display display, MessageEdit me, int caretPos) { super(display); this.me=me; this.caretPos=caretPos; il = SmilesIcons.getInstance(); | public SmilePicker(Display display, MessageEdit me) { super(display); this.me=me; il = SmilesIcons.getInstance(); smileTable=MessageParser.getInstance().getSmileTable(); imgCnt=smileTable.size(); //il.getCount(); imgWidth=il.getWidth()... |
me.addText( getTipString() ); | me.insertText( getTipString() , caretPos); | public void onSelect(){ try { me.addText( getTipString() ); } catch (Exception e) { /*e.printStackTrace();*/ } destroyView(); }; |
return f.getHeight(); | return f.getHeight()+3; | public static int getHeight(){ Font f=FontCache.getBalloonFont(); return f.getHeight(); } |
model.put("prefix", new PrefixMethod()); model.put("qname", new QNameMethod()); | protected EnunciateFreemarkerModel getRootModel() throws TemplateModelException { EnunciateFreemarkerModel model = (EnunciateFreemarkerModel) super.getRootModel(); AnnotationProcessorEnvironment env = Context.getCurrentEnvironment(); Collection<TypeDeclaration> typeDeclarations = env.getTypeDeclarations(); ... | |
System.out.println("discovering services..."); | public EnunciateConfiguration() { this.modules = new TreeSet<DeploymentModule>(new DeploymentModuleComparator()); System.out.println("discovering services..."); Iterator discoveredModules = Service.providers(DeploymentModule.class); while (discoveredModules.hasNext()) { DeploymentModule discoveredMod... | |
System.out.println("discovered module: " + discoveredModule.getName()); | public EnunciateConfiguration() { this.modules = new TreeSet<DeploymentModule>(new DeploymentModuleComparator()); System.out.println("discovering services..."); Iterator discoveredModules = Service.providers(DeploymentModule.class); while (discoveredModules.hasNext()) { DeploymentModule discoveredMod... | |
public AssociationResponse(ParameterList params) throws MessageException | protected AssociationResponse(AssociationRequest assocReq, Association assoc) throws AssociationException | public AssociationResponse(ParameterList params) throws MessageException { super(params); } |
super(params); | if (assocReq.isVersion2()) set("ns", OPENID2_NS); AssociationSessionType type = assocReq.getType(); setType(type); setAssocHandle(assoc.getHandle()); Long expiryIn = new Long( ( assoc.getExpiry().getTime() - System.currentTimeMillis() ) / 1000 ); setExpire(expiryIn.toString()); if (type.getHAlgorithm() != null) { D... | public AssociationResponse(ParameterList params) throws MessageException { super(params); } |
public AuthRequest(String claimedId, String delegate, boolean compatibility, String returnToUrl, String handle, String realm, RealmVerifier verifier) | protected AuthRequest(String claimedId, String delegate, boolean compatibility, String returnToUrl, String handle, RealmVerifier verifier) | public AuthRequest(String claimedId, String delegate, boolean compatibility, String returnToUrl, String handle, String realm, RealmVerifier verifier) throws MessageException { if (! compatibility) { set("openid.ns", OPENID2_NS); setClaimed(clai... |
if (! compatibility) { set("openid.ns", OPENID2_NS); setClaimed(claimedId); } | this(claimedId, delegate, compatibility, returnToUrl, handle, returnToUrl, verifier); | public AuthRequest(String claimedId, String delegate, boolean compatibility, String returnToUrl, String handle, String realm, RealmVerifier verifier) throws MessageException { if (! compatibility) { set("openid.ns", OPENID2_NS); setClaimed(clai... |
setIdentity(delegate); if ( returnToUrl != null ) setReturnTo(returnToUrl); if ( realm != null ) setRealm(realm); if (! Association.FAILED_ASSOC_HANDLE.equals(handle)) setHandle(handle); setImmediate(false); _realmVerifier = verifier; if (! isValid()) throw new MessageException( "Cannot generate valid authenticatio... | public AuthRequest(String claimedId, String delegate, boolean compatibility, String returnToUrl, String handle, String realm, RealmVerifier verifier) throws MessageException { if (! compatibility) { set("openid.ns", OPENID2_NS); setClaimed(clai... | |
public AssociationRequest(AssociationSessionType type, DiffieHellmanSession dhSess) throws MessageException | protected AssociationRequest(AssociationSessionType type) | public AssociationRequest(AssociationSessionType type, DiffieHellmanSession dhSess) throws MessageException { // make sure the association / session type matches the dhSess if ( type == null || (dhSess == null && type.getHAlgorithm() != null) |... |
if ( type == null || (dhSess == null && type.getHAlgorithm() != null) || (dhSess != null && ! dhSess.getType().equals(type) ) ) throw new MessageException( "Invalid association / session combination specified: " + type + "DH session: " + dhSess); if (type.isVersion2()) set("openid.ns", OPENID2_NS); set("openid.mode",... | this(type, null); | public AssociationRequest(AssociationSessionType type, DiffieHellmanSession dhSess) throws MessageException { // make sure the association / session type matches the dhSess if ( type == null || (dhSess == null && type.getHAlgorithm() != null) |... |
public VerifyResponse(ParameterList params) throws MessageException | protected VerifyResponse(boolean compatibility) | public VerifyResponse(ParameterList params) throws MessageException { super(params); } |
super(params); | set("mode", MODE_IDRES); setSignatureVerified(false); if (! compatibility) set("ns", OPENID2_NS); | public VerifyResponse(ParameterList params) throws MessageException { super(params); } |
s.setProgress("Bombus "+Version.version,7); | s.setProgress("BombusMod "+Version.version,7); | public void run(){ SplashScreen s= SplashScreen.getInstance(); s.setProgress(5); try { NetworkAccu.getGPRS(); } catch (Exception e) { } try { s.img=Image.createImage("/images/splash.png"); if (Version.get... |
if ((!namespace.equals(typeNamespace)) || (getBaseType().isAnonymous())) { | if (!namespace.equals(typeNamespace)) { | public QName getRef() { String namespace = getNamespace(); String typeNamespace = getTypeDefinition().getTargetNamespace(); namespace = namespace == null ? "<empty namespace>" : namespace; typeNamespace = typeNamespace == null ? "<empty namespace>" : typeNamespace; if ((!namespace.equals(typeNamespace)... |
case 31: | case 32: | public void setValue(int vall) { this.value=vall; cl=Colors.getInstance(); switch(paramName) { case 0: cl.BALLOON_INK=value; break; case 1: cl.BALLOON_BGND=value; break; ... |
case 32: | case 33: | public void setValue(int vall) { this.value=vall; cl=Colors.getInstance(); switch(paramName) { case 0: cl.BALLOON_INK=value; break; case 1: cl.BALLOON_BGND=value; break; ... |
new BookmarkQurery(BookmarkQurery.SAVE); | new BookmarkQuery(BookmarkQuery.SAVE); | private void saveBookmarks() { new BookmarkQurery(BookmarkQurery.SAVE); } |
public EnunciatedJAXWSServiceFactory(String typeSetId) { super(XFireFactory.newInstance().getXFire().getTransportManager()); ((AegisBindingProvider) getBindingProvider()).setTypeMappingRegistry(new EnunciatedJAXWSTypeRegistry(typeSetId)); | public EnunciatedJAXWSServiceFactory() { this(null); | public EnunciatedJAXWSServiceFactory(String typeSetId) { super(XFireFactory.newInstance().getXFire().getTransportManager()); ((AegisBindingProvider) getBindingProvider()).setTypeMappingRegistry(new EnunciatedJAXWSTypeRegistry(typeSetId)); } |
binding.setSerializer(new EnunciatedJAXWSOperationBinding(op)); | binding.setSerializer(op, new EnunciatedJAXWSOperationBinding(op)); | public void createBindingOperation(Service service, AbstractSoapBinding binding, OperationInfo op) { super.createBindingOperation(service, binding, op); try { binding.setSerializer(new EnunciatedJAXWSOperationBinding(op)); } catch (XFireFault e) { throw new XFireRuntimeException("Error setting t... |
InputStream paramNamesStream = getClass().getResourceAsStream("/" + typeSetId + ".message.part.names"); if (paramNamesStream == null) { throw new IllegalArgumentException("Unkown type set id: " + typeSetId); | if (typeSetId != null) { InputStream paramNamesStream = getClass().getResourceAsStream("/" + typeSetId + ".property.names"); if (paramNamesStream == null) { throw new IllegalArgumentException("Unkown type set id: " + typeSetId); } try { ObjectInputStream ois = new ObjectInputStream(paramNamesStream); this.parameterNam... | public EnunciatedJAXWSTypeRegistry(String typeSetId) { InputStream paramNamesStream = getClass().getResourceAsStream("/" + typeSetId + ".message.part.names"); if (paramNamesStream == null) { throw new IllegalArgumentException("Unkown type set id: " + typeSetId); } try { ObjectInputStream ois = n... |
try { ObjectInputStream ois = new ObjectInputStream(paramNamesStream); this.parameterNames = (HashMap<String, String[]>) ois.readObject(); ois.close(); } catch (Exception e) { throw new IllegalArgumentException("Unable to read parameter names for type set " + typeSetId, e); | else { this.parameterNames = new HashMap<String, String[]>(); | public EnunciatedJAXWSTypeRegistry(String typeSetId) { InputStream paramNamesStream = getClass().getResourceAsStream("/" + typeSetId + ".message.part.names"); if (paramNamesStream == null) { throw new IllegalArgumentException("Unkown type set id: " + typeSetId); } try { ObjectInputStream ois = n... |
VirtualList.altInput=altInput; | 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... | |
if (!namespace.equals(typeNamespace)) { | if (namespace == null) { if (typeNamespace != null) { return new QName(namespace, getName()); } } else if (!namespace.equals(typeNamespace)) { | public QName getRef() { String namespace = getNamespace(); String typeNamespace = getTypeDefinition().getTargetNamespace(); if (!namespace.equals(typeNamespace)) { return new QName(namespace, getName()); } return null; } |
ctMethod.setBody( "{ return ( $r ) ( ( " + method.getDeclaringClass().getName() + " )provider.getObject() )." + method.getName() + "($$); }" ); | final String body = "{ return ( $r ) ( ( " + method.getDeclaringClass().getName() + " )provider.getObject() )." + method.getName() + "($$); }"; ctMethod.setBody( body ); | public Class generateProxyClass( ClassLoader classLoader, Class[] proxyClasses ) { try { final CtClass proxyClass = JavassistUtils.createClass( getSuperclass( proxyClasses ) ); JavassistUtils.addField( ObjectProvider.class, "provider", proxyClass ); ... |
final Method[] methods = proxyInterface.getDeclaredMethods(); | final Method[] methods = proxyInterface.getMethods(); | public static Method[] getImplementationMethods( Class... proxyInterfaces ) { final Set<MethodSignature> signatures = new HashSet<MethodSignature>(); final List<Method> resultingMethods = new LinkedList<Method>(); for( int i = 0; i < proxyInterfaces.length; i++ ) { Class pr... |
allFaults.addAll(webMethod.getWebFaults()); | for (WebMessage webMessage : webMethod.getMessages()) { if (webMessage instanceof RequestWrapper) { model.put("message", webMessage); processTemplate(requestBeanTemplate, model); typeList.add(getBeanName(classnameFor, ((RequestWrapper) webMessage).getRequestBeanName())); } else if (webMessage instanceof ResponseWrapper... | public void doFreemarkerGenerate() throws IOException, TemplateException { EnunciateFreemarkerModel model = getModel(); //generate the JDK 1.4 client code. LinkedHashMap<String, String> conversions = getClientPackageConversions(); model.put("packageFor", new ClientPackageForMethod(conversions)); Client... |
List<String> typeList = new ArrayList<String>(); | public void doFreemarkerGenerate() throws IOException, TemplateException { EnunciateFreemarkerModel model = getModel(); //generate the JDK 1.4 client code. LinkedHashMap<String, String> conversions = getClientPackageConversions(); model.put("packageFor", new ClientPackageForMethod(conversions)); Client... | |
public ClientClassnameForMethod(LinkedHashMap<String, String> conversions, boolean jdk15) { super(conversions); this.jdk15 = jdk15; | public ClientClassnameForMethod(LinkedHashMap<String, String> conversions) { this(conversions, true); | public ClientClassnameForMethod(LinkedHashMap<String, String> conversions, boolean jdk15) { super(conversions); this.jdk15 = jdk15; } |
createFromStream(Presence.PRESENCE_ONLINE, Presence.PRS_ONLINE, inputStream); createFromStream(Presence.PRESENCE_CHAT, Presence.PRS_CHAT, inputStream); createFromStream(Presence.PRESENCE_AWAY, Presence.PRS_AWAY, inputStream); createFromStream(Presence.PRESENCE_XA, Presence.PRS_XA, inputStream); createFromStream(Presenc... | createFromStream(Presence.PRESENCE_ONLINE, SR.MS_ONLINE, inputStream); createFromStream(Presence.PRESENCE_CHAT, SR.MS_CHAT, inputStream); createFromStream(Presence.PRESENCE_AWAY, SR.MS_AWAY, inputStream); createFromStream(Presence.PRESENCE_XA, SR.MS_XA, inputStream); createFromStream(Presence.PRESENCE_DND, SR.MS_DND, i... | private StatusList() { statusList=new Vector(7); try { DataInputStream inputStream=NvStorage.ReadFileRecord("status", 0); createFromStream(Presence.PRESENCE_ONLINE, Presence.PRS_ONLINE, inputStream); createFromStream(Presence.PRESENCE_CHAT, Presence.PRS_CHAT, inputStream); createFromStre... |
timeInfo.setStartTime(DateTimeFormat.parseIso(argValue)); timeInfo.setStopTime(timeInfo.getStartTime()); | this.parseTimeArg(timeInfo, argValue); | public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException { String invalidQuery = "Invalid WCS GET request"; // parse query arguments WCSQuery queryInfo = new WCSQuery(); String query = req.getQueryString(); //this.log("GET REQUEST: " + query +... |
ConferenceGroup mucGrp=(ConferenceGroup)c.getGroup(); String myNick=mucGrp.getSelfContact().getName(); | 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... | |
new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.PARTICIPANT,myNick); | new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.PARTICIPANT,null); | 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... |
new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.VISITOR,myNick); | new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.VISITOR,null); | 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... |
new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.MODERATOR,myNick); | new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.MODERATOR,null); | 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... |
new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.MEMBER,myNick); | new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.MEMBER,null); | 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... |
new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.NONE,myNick); | new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.NONE,null); | 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... |
new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.ADMIN,myNick); | new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.ADMIN,null); | 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... |
new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.OWNER,myNick); | new ConferenceQuickPrivelegeModify(null, mc, ConferenceQuickPrivelegeModify.OWNER,null); | 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... |
s.setProgress(14); try { Colors cl=Colors.getInstance(); } catch (Exception e) { e.printStackTrace(); } | public void run(){ SplashScreen s= SplashScreen.getInstance(); s.setProgress(5); try { s.img=Image.createImage("/images/splash.png"); if (Version.getPlatformName().startsWith("Nokia")) { splash=s.img; progra... | |
if (!converterOptions.getAutoSync()) { int offset = converterOptions.getAudioDelay(); if (offset <= 0) af = "advance=" + -offset + "," + af; else af = "delay=" + offset + ":" + offset + "," + af; } | public void convertDVD(DVDInfo dvdInfo) { String inputVideo = "Title " + dvdInfo.getTitle() + " of the DVD at " + dvdInfo.getDrive(); Chapters[] chapters = dvdInfo.getChapters(); if (chapters != null) { if (chapters[0].getFirstChapter() == chapters[0].getLastChapter()) inputVideo = "Chapter " + chapters[0].g... | |
int offset = converterOptions.getAudioDelay(); commandList.add("-delay"); commandList.add("" + (offset / 1000.0)); | public void convertDVD(DVDInfo dvdInfo) { String inputVideo = "Title " + dvdInfo.getTitle() + " of the DVD at " + dvdInfo.getDrive(); Chapters[] chapters = dvdInfo.getChapters(); if (chapters != null) { if (chapters[0].getFirstChapter() == chapters[0].getLastChapter()) inputVideo = "Chapter " + chapters[0].g... | |
if (!converterOptions.getAutoSync()) { int offset = converterOptions.getAudioDelay(); if (offset <= 0) af = "advance=" + -offset + "," + af; else af = "delay=" + offset + ":" + offset + "," + af; } | public void convertSingleVideo(SingleVideoInfo singleVideoInfo) { progressDialogInfo.setInputVideo(new File(singleVideoInfo.getInputVideo()).getName()); progressDialogInfo.setOutputVideo(new File(singleVideoInfo.getOutputVideo()).getName()); progressDialogInfo.setStatus("Gathering information about the input video.... | |
int offset = converterOptions.getAudioDelay(); commandList.add("-delay"); commandList.add("" + (offset / 1000.0)); | public void convertSingleVideo(SingleVideoInfo singleVideoInfo) { progressDialogInfo.setInputVideo(new File(singleVideoInfo.getInputVideo()).getName()); progressDialogInfo.setOutputVideo(new File(singleVideoInfo.getOutputVideo()).getName()); progressDialogInfo.setStatus("Gathering information about the input video.... | |
if (new File(singleVideoInfo.getInputVideo()).exists() && !singleVideoInfo.getOutputVideo().equals("")) | if (new File(singleVideoInfo.getInputVideo()).exists() && !singleVideoInfo.getOutputVideo().equals("") && validOutput) | public static List removeInvalidJobs(List jobs) { List newJobs = new ArrayList(); for (int i = 0; i < jobs.size(); i++) { if (jobs.get(i) instanceof OutputVideoInfo) { OutputVideoInfo outputVideoInfo = (OutputVideoInfo) jobs.get(i); if (!outputVideoInfo.getOutputVideo().endsWith(".avi") && !outputVideoInfo... |
newJobs.add(directoryInfo); | if (!new File(directoryInfo.getOutputDirectory()).exists()) validOutput = new File(directoryInfo.getOutputDirectory()).mkdirs(); if (validOutput) newJobs.add(directoryInfo); | public static List removeInvalidJobs(List jobs) { List newJobs = new ArrayList(); for (int i = 0; i < jobs.size(); i++) { if (jobs.get(i) instanceof OutputVideoInfo) { OutputVideoInfo outputVideoInfo = (OutputVideoInfo) jobs.get(i); if (!outputVideoInfo.getOutputVideo().endsWith(".avi") && !outputVideoInfo... |
if (!dvdInfo.getDrive().equals("") && !dvdInfo.getOutputVideo().equals("")) | if (!dvdInfo.getDrive().equals("") && !dvdInfo.getOutputVideo().equals("") && validOutput) | public static List removeInvalidJobs(List jobs) { List newJobs = new ArrayList(); for (int i = 0; i < jobs.size(); i++) { if (jobs.get(i) instanceof OutputVideoInfo) { OutputVideoInfo outputVideoInfo = (OutputVideoInfo) jobs.get(i); if (!outputVideoInfo.getOutputVideo().endsWith(".avi") && !outputVideoInfo... |
if (joinVideosInfo.getInputVideos().length > 0) | if (joinVideosInfo.getInputVideos().length > 0 && validOutput) | public static List removeInvalidJobs(List jobs) { List newJobs = new ArrayList(); for (int i = 0; i < jobs.size(); i++) { if (jobs.get(i) instanceof OutputVideoInfo) { OutputVideoInfo outputVideoInfo = (OutputVideoInfo) jobs.get(i); if (!outputVideoInfo.getOutputVideo().endsWith(".avi") && !outputVideoInfo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.