Revision: 515
http://cishell.svn.sourceforge.net/cishell/?rev=515&view=rev
Author: huangb
Date: 2007-09-11 21:35:06 -0700 (Tue, 11 Sep 2007)
Log Message:
-----------
Modify the title of the pop-up window to "Applicaiton Viewer Type"
and adjust the order of the application shown up in the pull-down box.
Modified Paths:
--------------
trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWithFactory.java
Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWithFactory.java
===================================================================
--- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWithFactory.java 2007-09-12 02:50:23 UTC (rev 514)
+++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWithFactory.java 2007-09-12 04:35:06 UTC (rev 515)
@@ -48,7 +48,7 @@
public MetaTypeProvider createParameters(Data[] data) {
BasicObjectClassDefinition definition;
- definition = new BasicObjectClassDefinition("fileViewWithDefinition", "Application viewer type", "Please choose an application viewer to read this file.", null);
+ definition = new BasicObjectClassDefinition("fileViewWithDefinition", "Application Viewer Type", "Please choose an application viewer to read this file.", null);
Display.getDefault().syncExec(new Runnable() {
public void run() {
@@ -74,30 +74,29 @@
int possiblePrograms = 0;
int counter = 0;
- if (programTxt != null) {
+ if (programHtml != null) {
possiblePrograms++;
}
if (programDoc != null) {
possiblePrograms++;
}
- if (programHtml != null) {
+ if (programTxt != null) {
possiblePrograms++;
}
String[] myOptionLabels = new String[possiblePrograms];
String[] myOptionValues = new String[possiblePrograms];
-
- if (programTxt != null) {
- myOptionLabels[counter] = programTxt.getName();
- myOptionValues[counter++] = "txt";
+ if (programHtml != null) {
+ myOptionLabels[counter] = programHtml.getName();
+ myOptionValues[counter++] = "html";
}
if (programDoc != null) {
myOptionLabels[counter] = programDoc.getName();
myOptionValues[counter++] = "doc";
}
- if (programHtml != null) {
- myOptionLabels[counter] = programHtml.getName();
- myOptionValues[counter++] = "html";
+ if (programTxt != null) {
+ myOptionLabels[counter] = programTxt.getName();
+ myOptionValues[counter++] = "txt";
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|