Skip to content

Commit

Permalink
BZ:1043833 - Translation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikkola committed Feb 12, 2014
1 parent 43f6b84 commit bd289fd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Expand Up @@ -461,7 +461,7 @@ public String getTitle() {
fileName = fileName + " v" + version;
}

return Constants.INSTANCE.GuidedRuleEditorTitle() + " [" + fileName + "]";
return view.getTitle(fileName);
}

@WorkbenchPartView
Expand Down
Expand Up @@ -34,6 +34,8 @@ void setContent( final Path path,
final boolean isReadOnly,
final boolean isDSLEnabled );

String getTitle(String fileName);

RuleModel getContent();

boolean isDirty();
Expand Down
Expand Up @@ -18,6 +18,7 @@

import java.util.Collection;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.user.client.Window;
Expand All @@ -29,6 +30,7 @@
import org.jboss.errai.common.client.api.RemoteCallback;
import org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle;
import org.kie.workbench.common.widgets.client.resources.i18n.CommonConstants;
import org.drools.workbench.screens.guided.rule.client.resources.i18n.Constants;
import org.uberfire.backend.vfs.Path;
import org.uberfire.client.common.BusyPopup;

Expand Down Expand Up @@ -69,6 +71,12 @@ public void callback( Collection<String> ruleNames ) {
} ).getRuleNamesForPackage( path, model.getPackageName() );
}

@Override
public String getTitle(String fileName) {
Constants constants = GWT.create(Constants.class);
return constants.GuidedRuleEditorTitle() + " [" + fileName + "]";
}

@Override
public RuleModel getContent() {
return modeller.getModel();
Expand Down
Expand Up @@ -31,7 +31,6 @@
public interface Constants
extends
Messages {
public static final Constants INSTANCE = GWT.create( Constants.class );

String AddAnotherFieldToThisSoYouCanSetItsValue();

Expand Down

0 comments on commit bd289fd

Please sign in to comment.