PhpProjectRunPreferences.java Sample
This topic inludes the source code for the PhpProjectRunPreferences.java Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/ExtensionDevKit/IdeDevKit/CustomProject/src/ideExtensions/customProject/
Sample Source Code
01 package ideExtensions.customProject;
02
03 import com.bea.ide.core.LookAndFeelConstants;
04 import javax.swing.JPanel;
05 import com.bea.ide.workspace.project.IRunPreferences;
06 import java.util.Map;
07 import java.util.prefs.Preferences;
08 import javax.swing.JDialog;
09 import javax.swing.JLabel;
10 import javax.swing.UIManager;
11
12 /**
13 * A preferences class for displaying project type-specific preferences
14 * on the Debugging panel of the project preferences dialog. A PHP
15 * project has no specific preferences, so this panel merely says so.
16 */
17 public class PhpProjectRunPreferences extends JPanel implements IRunPreferences
18 {
19 public PhpProjectRunPreferences()
20 {
21 initComponents();
22 }
23
24 private void initComponents()
25 {
26 JLabel lblMessage = new JLabel();
27 lblMessage.setText("This is where project-specific debugging " +
28 "preferences would go.");
29 this.add(lblMessage);
30 }
31 public String getId()
32 {
33 return "PHP Run Preferences";
34 }
35
36 public JPanel getJPanel()
37 {
38 return this;
39 }
40
41 public String getTabName()
42 {
43 return "Run Preferences";
44 }
45
46 public void postLoad(Preferences arg0)
47 {
48 }
49
50 public void preStore(Preferences arg0)
51 {
52 }
53
54 public void setAddPropertiesToMap(Map arg0)
55 {
56 }
57
58 /**
59 *
60 */
61 public boolean validateEntries(JDialog dialog)
62 {
63 return true;
64 }
65 }
|