This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.android.rssfeed; | |
import android.content.SharedPreferences; | |
import android.content.SharedPreferences.OnSharedPreferenceChangeListener; | |
import android.os.Bundle; | |
import android.preference.EditTextPreference; | |
import android.preference.ListPreference; | |
import android.preference.Preference; | |
import android.preference.PreferenceActivity; | |
import android.preference.PreferenceCategory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author: Fabio Zadrozny | |
* @licenes: EPL | |
**/ | |
package com.brainwy.liclipse.theme.e4; | |
import org.eclipse.e4.ui.css.core.dom.properties.ICSSPropertyHandler; | |
import org.eclipse.e4.ui.css.core.engine.CSSEngine; | |
import org.eclipse.e4.ui.css.swt.dom.ControlElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Address { | |
private String street; | |
private int housenumber; | |
private int postalCode; | |
private String city; | |
public String getStreet() { | |
return street; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.vogella.nebula.nattable.model; | |
import java.util.Date; | |
public class Person { | |
public enum Gender { | |
MALE, FEMALE | |
} | |
private final int id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.e4.renderer.swt; | |
import org.eclipse.e4.ui.model.application.ui.MDirtyable; | |
import org.eclipse.e4.ui.model.application.ui.MUILabel; | |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; | |
import org.eclipse.e4.ui.workbench.UIEvents; | |
import org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer; | |
import org.eclipse.swt.custom.CTabItem; | |
public class MyStackRenderer extends StackRenderer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.e4.rcp.todo.parts; | |
import javax.annotation.PostConstruct; | |
import javax.inject.Inject; | |
import javax.inject.Named; | |
import org.eclipse.e4.core.di.annotations.Optional; | |
import org.eclipse.e4.ui.di.Focus; | |
import org.eclipse.e4.ui.services.IServiceConstants; | |
import org.eclipse.swt.SWT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download and import | |
http://www.vogella.com/download/androidexpert/rssfeedreader_static.zip | |
Exercise / Part 1 | |
Remove layouts for portrait mode. | |
Replace content of activity_rssfeed.xml layout with a placeholder element. Use FrameLayout as a placeholder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download Otto JAR from http://square.github.io/otto/ | |
Build new Android project using the | |
<code>Blank Activity with Fragment</code> | |
template. | |
Create an Bus singleton and add a button to the fragment to send events to your activity. | |
Via the option menu send data to the fragment | |
Display a Toast in both cases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.vogella.android.testing.mockitocontextmock; | |
import android.content.Context; | |
import java.io.BufferedWriter; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
public class Util { | |
public static void writeConfiguration(Context ctx ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.e4.rcp.todo.toolcontrols; | |
import java.util.Objects; | |
import javax.annotation.PostConstruct; | |
import javax.inject.Inject; | |
import org.eclipse.core.runtime.IProgressMonitor; | |
import org.eclipse.core.runtime.NullProgressMonitor; |
OlderNewer